pub struct NumpyArrayInfo {
pub shape: Vec<usize>,
pub strides: Vec<isize>,
pub dtype: DType,
pub c_contiguous: bool,
pub f_contiguous: bool,
pub nbytes: usize,
}Expand description
NumPy-compatible array metadata
Fields§
§shape: Vec<usize>Array shape
strides: Vec<isize>Array strides in bytes
dtype: DTypeData type
c_contiguous: boolWhether the array is C-contiguous
f_contiguous: boolWhether the array is Fortran-contiguous
nbytes: usizeTotal size in bytes
Implementations§
Trait Implementations§
Source§impl Clone for NumpyArrayInfo
impl Clone for NumpyArrayInfo
Source§fn clone(&self) -> NumpyArrayInfo
fn clone(&self) -> NumpyArrayInfo
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 NumpyArrayInfo
impl Debug for NumpyArrayInfo
impl Eq for NumpyArrayInfo
Source§impl PartialEq for NumpyArrayInfo
impl PartialEq for NumpyArrayInfo
Source§fn eq(&self, other: &NumpyArrayInfo) -> bool
fn eq(&self, other: &NumpyArrayInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NumpyArrayInfo
Auto Trait Implementations§
impl Freeze for NumpyArrayInfo
impl RefUnwindSafe for NumpyArrayInfo
impl Send for NumpyArrayInfo
impl Sync for NumpyArrayInfo
impl Unpin for NumpyArrayInfo
impl UnsafeUnpin for NumpyArrayInfo
impl UnwindSafe for NumpyArrayInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more