Struct melior::dialect::ods::pdl_interp::AreEqualOperation
source · pub struct AreEqualOperation<'c> { /* private fields */ }
Expand description
An are_equal
operation. Check if two positional values or ranges are equivalent.
pdl_interp.are_equal
operations compare two positional values for
equality. On success, this operation branches to the true destination,
otherwise the false destination is taken.
Example:
pdl_interp.are_equal %result1, %result2 : !pdl.value -> ^matchDest, ^failureDest
Implementations§
source§impl<'c> AreEqualOperation<'c>
impl<'c> AreEqualOperation<'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>
) -> AreEqualOperationBuilder<'c, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> AreEqualOperationBuilder<'c, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn lhs(&self) -> Result<Value<'c, '_>, Error>
pub fn rhs(&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<AreEqualOperation<'c>> for Operation<'c>
impl<'c> From<AreEqualOperation<'c>> for Operation<'c>
source§fn from(operation: AreEqualOperation<'c>) -> Self
fn from(operation: AreEqualOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AreEqualOperation<'c>
impl<'c> !Send for AreEqualOperation<'c>
impl<'c> !Sync for AreEqualOperation<'c>
impl<'c> Unpin for AreEqualOperation<'c>
impl<'c> UnwindSafe for AreEqualOperation<'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