pub struct NDArrayInfo {
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,
}Expand description
Computed info about an NDArray’s layout.
Fields§
§total_bytes: usize§bytes_per_element: usize§num_elements: usize§x_size: usize§y_size: usize§color_size: usizeTrait 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