pub struct DeviceScalarMut<T> { /* private fields */ }Implementations§
Source§impl<T> DeviceScalarMut<T>
impl<T> DeviceScalarMut<T>
Sourcepub const unsafe fn new(ptr: DevicePtr) -> Self
pub const unsafe fn new(ptr: DevicePtr) -> Self
Creates a mutable device scalar from a raw device pointer.
§Safety
ptr must point to a valid writable device allocation containing a T
for every cuSPARSE operation using this scalar.
pub const fn as_device_ptr(&self) -> DevicePtr
pub const fn as_mut_ptr(&self) -> *mut T
Trait Implementations§
Source§impl<T: Clone> Clone for DeviceScalarMut<T>
impl<T: Clone> Clone for DeviceScalarMut<T>
Source§fn clone(&self) -> DeviceScalarMut<T>
fn clone(&self) -> DeviceScalarMut<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for DeviceScalarMut<T>
Source§impl<T: Debug> Debug for DeviceScalarMut<T>
impl<T: Debug> Debug for DeviceScalarMut<T>
impl<T: Eq> Eq for DeviceScalarMut<T>
Source§impl<T> From<DeviceScalarMut<T>> for ScalarMut<'_, T>
impl<T> From<DeviceScalarMut<T>> for ScalarMut<'_, T>
Source§fn from(value: DeviceScalarMut<T>) -> Self
fn from(value: DeviceScalarMut<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Hash> Hash for DeviceScalarMut<T>
impl<T: Hash> Hash for DeviceScalarMut<T>
Source§impl<T: PartialEq> PartialEq for DeviceScalarMut<T>
impl<T: PartialEq> PartialEq for DeviceScalarMut<T>
Source§fn eq(&self, other: &DeviceScalarMut<T>) -> bool
fn eq(&self, other: &DeviceScalarMut<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: PartialEq> StructuralPartialEq for DeviceScalarMut<T>
Auto Trait Implementations§
impl<T> !Send for DeviceScalarMut<T>
impl<T> !Sync for DeviceScalarMut<T>
impl<T> Freeze for DeviceScalarMut<T>
impl<T> RefUnwindSafe for DeviceScalarMut<T>where
T: RefUnwindSafe,
impl<T> Unpin for DeviceScalarMut<T>
impl<T> UnsafeUnpin for DeviceScalarMut<T>
impl<T> UnwindSafe for DeviceScalarMut<T>where
T: RefUnwindSafe,
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