pub struct ConditionOperation<'c> { /* private fields */ }
Expand description
A condition
operation. Loop continuation condition.
This operation accepts the continuation (i.e., inverse of exit) condition
of the scf.while
construct. If its first argument is true, the “after”
region of scf.while
is executed, with the remaining arguments forwarded
to the entry block of the region. Otherwise, the loop terminates.
Implementations§
source§impl<'c> ConditionOperation<'c>
impl<'c> ConditionOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> ConditionOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ConditionOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn condition(&self) -> Result<Value<'c, '_>, Error>
pub fn args(&self) -> impl Iterator<Item = Value<'c, '_>>
Trait Implementations§
source§impl<'c> From<ConditionOperation<'c>> for Operation<'c>
impl<'c> From<ConditionOperation<'c>> for Operation<'c>
source§fn from(operation: ConditionOperation<'c>) -> Self
fn from(operation: ConditionOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ConditionOperation<'c>
impl<'c> !Send for ConditionOperation<'c>
impl<'c> !Sync for ConditionOperation<'c>
impl<'c> Unpin for ConditionOperation<'c>
impl<'c> UnwindSafe for ConditionOperation<'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