pub struct NDArrayInfo {Show 13 fields
pub total_bytes: usize,
pub bytes_per_element: usize,
pub num_elements: usize,
pub x_size: usize,
pub y_size: usize,
pub color_size: usize,
pub x_dim: usize,
pub y_dim: usize,
pub color_dim: usize,
pub x_stride: usize,
pub y_stride: usize,
pub color_stride: usize,
pub color_mode: NDColorMode,
}Expand description
Computed info about an NDArray’s layout (matching C++ NDArrayInfo_t).
Fields§
§total_bytes: usize§bytes_per_element: usize§num_elements: usize§x_size: usize§y_size: usize§color_size: usize§x_dim: usizeWhich dimension index is X.
y_dim: usizeWhich dimension index is Y.
color_dim: usizeWhich dimension index is color (0 if mono).
x_stride: usizeElements between successive X values.
y_stride: usizeElements between successive Y values.
color_stride: usizeElements between successive color values.
color_mode: NDColorModeResolved color mode.
Trait Implementations§
Source§impl Clone for NDArrayInfo
impl Clone for NDArrayInfo
Source§fn clone(&self) -> NDArrayInfo
fn clone(&self) -> NDArrayInfo
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 moreAuto Trait Implementations§
impl Freeze for NDArrayInfo
impl RefUnwindSafe for NDArrayInfo
impl Send for NDArrayInfo
impl Sync for NDArrayInfo
impl Unpin for NDArrayInfo
impl UnsafeUnpin for NDArrayInfo
impl UnwindSafe for NDArrayInfo
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