Struct melior::dialect::ods::pdl_interp::IsNotNullOperation
source · pub struct IsNotNullOperation<'c> { /* private fields */ }
Expand description
An is_not_null
operation. Check if a positional value is non-null.
pdl_interp.is_not_null
operations check that a positional value or range
exists. For ranges, this does not mean that the range was simply empty. On
success, this operation branches to the true destination. Otherwise, the
false destination is taken.
Example:
pdl_interp.is_not_null %value : !pdl.value -> ^matchDest, ^failureDest
Implementations§
source§impl<'c> IsNotNullOperation<'c>
impl<'c> IsNotNullOperation<'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>
) -> IsNotNullOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> IsNotNullOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn value(&self) -> Result<Value<'c, '_>, Error>
pub fn true_dest(&self) -> Result<BlockRef<'c, '_>, Error>
pub fn false_dest(&self) -> Result<BlockRef<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<IsNotNullOperation<'c>> for Operation<'c>
impl<'c> From<IsNotNullOperation<'c>> for Operation<'c>
source§fn from(operation: IsNotNullOperation<'c>) -> Self
fn from(operation: IsNotNullOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for IsNotNullOperation<'c>
impl<'c> !Send for IsNotNullOperation<'c>
impl<'c> !Sync for IsNotNullOperation<'c>
impl<'c> Unpin for IsNotNullOperation<'c>
impl<'c> UnwindSafe for IsNotNullOperation<'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