Struct melior::dialect::ods::pdl_interp::GetValueTypeOperation
source · pub struct GetValueTypeOperation<'c> { /* private fields */ }
Expand description
A get_value_type
operation. Get the result type of a specified Value
.
pdl_interp.get_value_type
operations get the resulting type of a specific
value or range thereof.
Example:
// Get the type of a single value.
%type = pdl_interp.get_value_type of %value : !pdl.type
// Get the types of a value range.
%type = pdl_interp.get_value_type of %values : !pdl.range<type>
Implementations§
source§impl<'c> GetValueTypeOperation<'c>
impl<'c> GetValueTypeOperation<'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>
) -> GetValueTypeOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GetValueTypeOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn value(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<GetValueTypeOperation<'c>> for Operation<'c>
impl<'c> From<GetValueTypeOperation<'c>> for Operation<'c>
source§fn from(operation: GetValueTypeOperation<'c>) -> Self
fn from(operation: GetValueTypeOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GetValueTypeOperation<'c>
impl<'c> !Send for GetValueTypeOperation<'c>
impl<'c> !Sync for GetValueTypeOperation<'c>
impl<'c> Unpin for GetValueTypeOperation<'c>
impl<'c> UnwindSafe for GetValueTypeOperation<'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