pub struct ValueOfOperation<'c> { /* private fields */ }
Expand description
A value_of
operation. Returns value of a !shape.value_shape operand.
The operation takes !shape.value_shape, a.k.a. (value, shape) tuple as an argument, and returns its value. The behavior is undefined for unknown and invalid arguments.
Implementations§
source§impl<'c> ValueOfOperation<'c>
impl<'c> ValueOfOperation<'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>
) -> ValueOfOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ValueOfOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn arg(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<ValueOfOperation<'c>> for Operation<'c>
impl<'c> From<ValueOfOperation<'c>> for Operation<'c>
source§fn from(operation: ValueOfOperation<'c>) -> Self
fn from(operation: ValueOfOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ValueOfOperation<'c>
impl<'c> !Send for ValueOfOperation<'c>
impl<'c> !Sync for ValueOfOperation<'c>
impl<'c> Unpin for ValueOfOperation<'c>
impl<'c> UnwindSafe for ValueOfOperation<'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