Struct melior::dialect::ods::sparse_tensor::GetStorageSpecifierOperation
source · pub struct GetStorageSpecifierOperation<'c> { /* private fields */ }
Expand description
A storage_specifier.get
operation.
Returns the requested field of the given storage_specifier.
Example of querying the size of the coordinates array for level 0:
%0 = sparse_tensor.storage_specifier.get %arg0 crd_mem_sz at 0
: !sparse_tensor.storage_specifier<#COO>
Implementations§
source§impl<'c> GetStorageSpecifierOperation<'c>
impl<'c> GetStorageSpecifierOperation<'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>
) -> GetStorageSpecifierOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GetStorageSpecifierOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn specifier(&self) -> Result<Value<'c, '_>, Error>
pub fn specifier_kind(&self) -> Result<Attribute<'c>, Error>
pub fn set_specifier_kind(&mut self, value: Attribute<'c>)
pub fn level(&self) -> Result<IntegerAttribute<'c>, Error>
pub fn set_level(&mut self, value: IntegerAttribute<'c>)
pub fn remove_level(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<GetStorageSpecifierOperation<'c>> for Operation<'c>
impl<'c> From<GetStorageSpecifierOperation<'c>> for Operation<'c>
source§fn from(operation: GetStorageSpecifierOperation<'c>) -> Self
fn from(operation: GetStorageSpecifierOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GetStorageSpecifierOperation<'c>
impl<'c> !Send for GetStorageSpecifierOperation<'c>
impl<'c> !Sync for GetStorageSpecifierOperation<'c>
impl<'c> Unpin for GetStorageSpecifierOperation<'c>
impl<'c> UnwindSafe for GetStorageSpecifierOperation<'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