pub struct SpSvDescriptor { /* private fields */ }Implementations§
Source§impl SpSvDescriptor
impl SpSvDescriptor
pub fn create(ctx: &Context) -> Result<Self>
pub fn as_raw(&self) -> cusparseSpSVDescr_t
Sourcepub unsafe fn from_raw(
handle: cusparseSpSVDescr_t,
ctx: &Context,
) -> Result<Self>
pub unsafe fn from_raw( handle: cusparseSpSVDescr_t, ctx: &Context, ) -> Result<Self>
Wraps an existing cuSPARSE SpSV descriptor and takes ownership of it.
§Safety
handle must be a valid cusparseSpSVDescr_t associated with ctx.
Ownership of handle is transferred to the returned descriptor, and the
handle must not be destroyed elsewhere after calling this function.
Sourcepub fn into_raw(self) -> cusparseSpSVDescr_t
pub fn into_raw(self) -> cusparseSpSVDescr_t
Consumes the descriptor and returns the raw cuSPARSE handle without destroying it.
The caller becomes responsible for eventually destroying the returned
handle with cusparseSpSV_destroyDescr.
Trait Implementations§
Source§impl Debug for SpSvDescriptor
impl Debug for SpSvDescriptor
Source§impl Drop for SpSvDescriptor
impl Drop for SpSvDescriptor
impl Send for SpSvDescriptor
impl Sync for SpSvDescriptor
Auto Trait Implementations§
impl Freeze for SpSvDescriptor
impl RefUnwindSafe for SpSvDescriptor
impl Unpin for SpSvDescriptor
impl UnsafeUnpin for SpSvDescriptor
impl UnwindSafe for SpSvDescriptor
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