Struct melior::ir::operation::OperationResult
source · pub struct OperationResult<'c, 'a> { /* private fields */ }
Expand description
An operation result.
Implementations§
source§impl<'c, 'a> OperationResult<'c, 'a>
impl<'c, 'a> OperationResult<'c, 'a>
sourcepub fn result_number(&self) -> usize
pub fn result_number(&self) -> usize
Returns a result number.
sourcepub fn owner(&self) -> OperationRef<'c, '_>
pub fn owner(&self) -> OperationRef<'c, '_>
Returns an owner operation.
Trait Implementations§
source§impl<'c, 'a> Clone for OperationResult<'c, 'a>
impl<'c, 'a> Clone for OperationResult<'c, 'a>
source§fn clone(&self) -> OperationResult<'c, 'a>
fn clone(&self) -> OperationResult<'c, 'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'c, 'a> Debug for OperationResult<'c, 'a>
impl<'c, 'a> Debug for OperationResult<'c, 'a>
source§impl<'c, 'a> Display for OperationResult<'c, 'a>
impl<'c, 'a> Display for OperationResult<'c, 'a>
source§impl<'c, 'a> From<OperationResult<'c, 'a>> for Value<'c, 'a>
impl<'c, 'a> From<OperationResult<'c, 'a>> for Value<'c, 'a>
source§fn from(value: OperationResult<'c, 'a>) -> Self
fn from(value: OperationResult<'c, 'a>) -> Self
Converts to this type from the input type.
source§impl<'c, 'a> TryFrom<Value<'c, 'a>> for OperationResult<'c, 'a>
impl<'c, 'a> TryFrom<Value<'c, 'a>> for OperationResult<'c, 'a>
source§impl<'c, 'a> ValueLike<'c> for OperationResult<'c, 'a>
impl<'c, 'a> ValueLike<'c> for OperationResult<'c, 'a>
source§fn is_block_argument(&self) -> bool
fn is_block_argument(&self) -> bool
Returns
true
if a value is a block argument.source§fn is_operation_result(&self) -> bool
fn is_operation_result(&self) -> bool
Returns
true
if a value is an operation result.impl<'c, 'a> Copy for OperationResult<'c, 'a>
Auto Trait Implementations§
impl<'c, 'a> RefUnwindSafe for OperationResult<'c, 'a>
impl<'c, 'a> !Send for OperationResult<'c, 'a>
impl<'c, 'a> !Sync for OperationResult<'c, 'a>
impl<'c, 'a> Unpin for OperationResult<'c, 'a>
impl<'c, 'a> UnwindSafe for OperationResult<'c, 'a>
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