pub struct DestroySpMatOperation<'c> { /* private fields */ }
Expand description
A destroy_sp_mat
operation. Destroy sparse matrix operation.
The gpu.destroy_sp_mat
operation releases all resources of a sparse
matrix represented by a handle that was previously created by a
one of the sparse matrix creation operations.
If the async
keyword is present, the op is executed asynchronously (i.e.
it does not block until the execution has finished on the device). In
that case, it returns a !gpu.async.token in addition to the environment.
Example:
%token = gpu.destroy_sp_mat async [%dep] %spmat
Implementations§
source§impl<'c> DestroySpMatOperation<'c>
impl<'c> DestroySpMatOperation<'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>
) -> DestroySpMatOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> DestroySpMatOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn async_token(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn async_dependencies(&self) -> impl Iterator<Item = Value<'c, '_>>
pub fn spmat(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<DestroySpMatOperation<'c>> for Operation<'c>
impl<'c> From<DestroySpMatOperation<'c>> for Operation<'c>
source§fn from(operation: DestroySpMatOperation<'c>) -> Self
fn from(operation: DestroySpMatOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for DestroySpMatOperation<'c>
impl<'c> !Send for DestroySpMatOperation<'c>
impl<'c> !Sync for DestroySpMatOperation<'c>
impl<'c> Unpin for DestroySpMatOperation<'c>
impl<'c> UnwindSafe for DestroySpMatOperation<'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