Struct melior::dialect::ods::pdl_interp::CreateTypesOperation
source · pub struct CreateTypesOperation<'c> { /* private fields */ }
Expand description
A create_types
operation. Create an interpreter handle to a range of constant Type
s.
pdl_interp.create_types
operations generate a handle within the
interpreter for a specific range of constant type values.
Example:
pdl_interp.create_types [i64, i64]
Implementations§
source§impl<'c> CreateTypesOperation<'c>
impl<'c> CreateTypesOperation<'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>
) -> CreateTypesOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> CreateTypesOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn value(&self) -> Result<ArrayAttribute<'c>, Error>
pub fn set_value(&mut self, value: ArrayAttribute<'c>)
Trait Implementations§
source§impl<'c> From<CreateTypesOperation<'c>> for Operation<'c>
impl<'c> From<CreateTypesOperation<'c>> for Operation<'c>
source§fn from(operation: CreateTypesOperation<'c>) -> Self
fn from(operation: CreateTypesOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for CreateTypesOperation<'c>
impl<'c> !Send for CreateTypesOperation<'c>
impl<'c> !Sync for CreateTypesOperation<'c>
impl<'c> Unpin for CreateTypesOperation<'c>
impl<'c> UnwindSafe for CreateTypesOperation<'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