pub struct GetResultOperation<'c> { /* private fields */ }
Expand description
A get_result
operation. Get handle to the a result of the targeted op.
The handle defined by this Transform op corresponds to the OpResult with
result_number
that is defined by the given target
operation.
This transform fails silently if the targeted operation does not have enough results. It reads the target handle and produces the result handle.
Implementations§
source§impl<'c> GetResultOperation<'c>
impl<'c> GetResultOperation<'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>
) -> GetResultOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GetResultOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn result(&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<GetResultOperation<'c>> for Operation<'c>
impl<'c> From<GetResultOperation<'c>> for Operation<'c>
source§fn from(operation: GetResultOperation<'c>) -> Self
fn from(operation: GetResultOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GetResultOperation<'c>
impl<'c> !Send for GetResultOperation<'c>
impl<'c> !Sync for GetResultOperation<'c>
impl<'c> Unpin for GetResultOperation<'c>
impl<'c> UnwindSafe for GetResultOperation<'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