pub struct YieldOperation<'c> { /* private fields */ }
Expand description
A yield
operation. Loop yield and termination operation.
“scf.yield” yields an SSA value from the SCF dialect op region and terminates the regions. The semantics of how the values are yielded is defined by the parent operation. If “scf.yield” has any operands, the operands must match the parent operation’s results. If the parent operation defines no values, then the “scf.yield” may be left out in the custom syntax and the builders will insert one implicitly. Otherwise, it has to be present in the syntax to indicate which values are yielded.
Implementations§
source§impl<'c> YieldOperation<'c>
impl<'c> YieldOperation<'c>
Trait Implementations§
source§impl<'c> From<YieldOperation<'c>> for Operation<'c>
impl<'c> From<YieldOperation<'c>> for Operation<'c>
source§fn from(operation: YieldOperation<'c>) -> Self
fn from(operation: YieldOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for YieldOperation<'c>
impl<'c> !Send for YieldOperation<'c>
impl<'c> !Sync for YieldOperation<'c>
impl<'c> Unpin for YieldOperation<'c>
impl<'c> UnwindSafe for YieldOperation<'c>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more