pub struct GetConsumersOfResultOperation<'c> { /* private fields */ }
Expand description
A get_consumers_of_result
operation. Get handle to the consumers of this operation’s result number.
The handle defined by this Transform op corresponds to all operations that
consume the SSA value defined by the target
and result_number
arguments.
This operation applies to a single payload operation, otherwise it
definitely fails.
The return handle points to the consuming operations operations, which can
be empty.
Implementations§
source§impl<'c> GetConsumersOfResultOperation<'c>
impl<'c> GetConsumersOfResultOperation<'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>
) -> GetConsumersOfResultOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GetConsumersOfResultOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn consumers(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn target(&self) -> Result<Value<'c, '_>, Error>
pub fn result_number(&self) -> Result<IntegerAttribute<'c>, Error>
pub fn set_result_number(&mut self, value: IntegerAttribute<'c>)
Trait Implementations§
source§impl<'c> From<GetConsumersOfResultOperation<'c>> for Operation<'c>
impl<'c> From<GetConsumersOfResultOperation<'c>> for Operation<'c>
source§fn from(operation: GetConsumersOfResultOperation<'c>) -> Self
fn from(operation: GetConsumersOfResultOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GetConsumersOfResultOperation<'c>
impl<'c> !Send for GetConsumersOfResultOperation<'c>
impl<'c> !Sync for GetConsumersOfResultOperation<'c>
impl<'c> Unpin for GetConsumersOfResultOperation<'c>
impl<'c> UnwindSafe for GetConsumersOfResultOperation<'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