#[repr(C)]pub struct DLManagedTensor {
pub dl_tensor: DLTensor,
pub manager_ctx: *mut c_void,
pub deleter: Option<unsafe extern "C" fn(self_: *mut DLManagedTensor)>,
}Fields§
§dl_tensor: DLTensor§manager_ctx: *mut c_void§deleter: Option<unsafe extern "C" fn(self_: *mut DLManagedTensor)>Trait Implementations§
Source§impl Clone for DLManagedTensor
impl Clone for DLManagedTensor
Source§fn clone(&self) -> DLManagedTensor
fn clone(&self) -> DLManagedTensor
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 Copy for DLManagedTensor
Auto Trait Implementations§
impl !Send for DLManagedTensor
impl !Sync for DLManagedTensor
impl Freeze for DLManagedTensor
impl RefUnwindSafe for DLManagedTensor
impl Unpin for DLManagedTensor
impl UnsafeUnpin for DLManagedTensor
impl UnwindSafe for DLManagedTensor
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