pub struct ContextRef { /* private fields */ }Implementations§
Source§impl ContextRef
impl ContextRef
pub fn devices(&self) -> &[i32]
pub fn device_count(&self) -> usize
pub fn as_raw(&self) -> cutensorMgHandle_t
Trait Implementations§
Source§impl Clone for ContextRef
impl Clone for ContextRef
Source§fn clone(&self) -> ContextRef
fn clone(&self) -> ContextRef
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 moreSource§impl Debug for ContextRef
impl Debug for ContextRef
impl Send for ContextRef
Auto Trait Implementations§
impl Freeze for ContextRef
impl RefUnwindSafe for ContextRef
impl Sync for ContextRef
impl Unpin for ContextRef
impl UnsafeUnpin for ContextRef
impl UnwindSafe for ContextRef
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