Struct image_canvas::layout::RowLayoutDescription
source · [−]pub struct RowLayoutDescription {
pub width: u32,
pub height: u32,
pub row_stride: u64,
pub texel: Texel,
}
Expand description
Describe a row-major rectangular matrix layout.
This is only concerned with byte-buffer compatibility and not type or color space semantics of texels. It assumes a row-major layout without space between texels of a row as that is the most efficient and common such layout.
For usage as an actual image buffer, to convert it to a CanvasLayout
by calling
CanvasLayout::with_row_layout
.
Fields
width: u32
height: u32
row_stride: u64
texel: Texel
Trait Implementations
sourceimpl Clone for RowLayoutDescription
impl Clone for RowLayoutDescription
sourcefn clone(&self) -> RowLayoutDescription
fn clone(&self) -> RowLayoutDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RowLayoutDescription
impl Debug for RowLayoutDescription
sourceimpl PartialEq<RowLayoutDescription> for RowLayoutDescription
impl PartialEq<RowLayoutDescription> for RowLayoutDescription
sourcefn eq(&self, other: &RowLayoutDescription) -> bool
fn eq(&self, other: &RowLayoutDescription) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RowLayoutDescription) -> bool
fn ne(&self, other: &RowLayoutDescription) -> bool
This method tests for !=
.
impl StructuralPartialEq for RowLayoutDescription
Auto Trait Implementations
impl RefUnwindSafe for RowLayoutDescription
impl Send for RowLayoutDescription
impl Sync for RowLayoutDescription
impl Unpin for RowLayoutDescription
impl UnwindSafe for RowLayoutDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more