pub struct GetDefiningOperation<'c> { /* private fields */ }
Expand description
A get_defining_op
operation. Get handle to the defining op of a value.
The handle defined by this Transform op corresponds to the defining op of the targeted value.
This transform fails silently if the targeted value is a block argument.
Implementations§
source§impl<'c> GetDefiningOperation<'c>
impl<'c> GetDefiningOperation<'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>
) -> GetDefiningOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GetDefiningOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn target(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<GetDefiningOperation<'c>> for Operation<'c>
impl<'c> From<GetDefiningOperation<'c>> for Operation<'c>
source§fn from(operation: GetDefiningOperation<'c>) -> Self
fn from(operation: GetDefiningOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GetDefiningOperation<'c>
impl<'c> !Send for GetDefiningOperation<'c>
impl<'c> !Sync for GetDefiningOperation<'c>
impl<'c> Unpin for GetDefiningOperation<'c>
impl<'c> UnwindSafe for GetDefiningOperation<'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