#[repr(C)]pub struct NdArrayVTable {
pub count: NdArrayCountFn,
pub n_dim: NdArrayNDimFn,
pub dim: NdArrayDimFn,
pub get: NdArrayGetFn,
pub get_mut: Option<NdArrayGetMutFn>,
pub byte_stride: Option<NdArrayByteStrideFn>,
pub as_ptr: Option<NdArrayAsPtrFn>,
pub as_mut_ptr: Option<NdArrayAsMutPtrFn>,
}
Expand description
Virtual table for a n-dimensional array type (like Matrix<T>
, Tensor<T>
, etc.)
Fields§
§count: NdArrayCountFn
cf. NdArrayCountFn
n_dim: NdArrayNDimFn
cf. NdArrayNDimFn
dim: NdArrayDimFn
cf. NdArrayDimFn
get: NdArrayGetFn
cf. NdArrayGetFn
get_mut: Option<NdArrayGetMutFn>
cf. NdArrayGetMutFn
Only available for mutable arrays
byte_stride: Option<NdArrayByteStrideFn>
cf. NdArrayByteStrideFn
Only available for types that can be accessed as a strided array
as_ptr: Option<NdArrayAsPtrFn>
cf. NdArrayAsPtrFn
Only available for types that can be accessed as a strided array
as_mut_ptr: Option<NdArrayAsMutPtrFn>
cf. NdArrayAsMutPtrFn
Only available for types that can be accessed as a strided array
Implementations§
Source§impl NdArrayVTable
impl NdArrayVTable
Sourcepub const fn builder() -> NdArrayVTableBuilder
pub const fn builder() -> NdArrayVTableBuilder
Returns a builder for NdArrayVTable
Trait Implementations§
Source§impl Clone for NdArrayVTable
impl Clone for NdArrayVTable
Source§fn clone(&self) -> NdArrayVTable
fn clone(&self) -> NdArrayVTable
Returns a duplicate of the value. Read more
1.0.0 · 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 NdArrayVTable
impl Debug for NdArrayVTable
impl Copy for NdArrayVTable
Auto Trait Implementations§
impl Freeze for NdArrayVTable
impl RefUnwindSafe for NdArrayVTable
impl Send for NdArrayVTable
impl Sync for NdArrayVTable
impl Unpin for NdArrayVTable
impl UnwindSafe for NdArrayVTable
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