pub struct Shape {
pub start: usize,
pub width: usize,
pub height: usize,
pub row_stride: usize,
pub col_stride: usize,
}Expand description
Shape defines size and layout of the data inside an image
Fields§
§start: usizeOffset of the first element
width: usizeWidth of the image
height: usizeHeight of the image
row_stride: usizeHow many elements we need to skip to get to the next row.
col_stride: usizeHow many elements we need to skip to get to the next column.
Implementations§
Trait Implementations§
source§impl PartialEq for Shape
impl PartialEq for Shape
impl Copy for Shape
impl Eq for Shape
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.