pub struct GetTypeOperation<'c> { /* private fields */ }
Expand description
A get_type
operation. Get a parameter containing the type of the given value.
This operation creates a new Transform parameter containing the type(s) of the value(s) associated with the operand handle.
This transform never fails.
Implementations§
source§impl<'c> GetTypeOperation<'c>
impl<'c> GetTypeOperation<'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>
) -> GetTypeOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GetTypeOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn type_param(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn value(&self) -> Result<Value<'c, '_>, Error>
pub fn elemental(&self) -> Result<Attribute<'c>, Error>
pub fn set_elemental(&mut self, value: Attribute<'c>)
pub fn remove_elemental(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<GetTypeOperation<'c>> for Operation<'c>
impl<'c> From<GetTypeOperation<'c>> for Operation<'c>
source§fn from(operation: GetTypeOperation<'c>) -> Self
fn from(operation: GetTypeOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GetTypeOperation<'c>
impl<'c> !Send for GetTypeOperation<'c>
impl<'c> !Sync for GetTypeOperation<'c>
impl<'c> Unpin for GetTypeOperation<'c>
impl<'c> UnwindSafe for GetTypeOperation<'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