Struct image_canvas::layout::ChannelSpec
source · [−]pub struct ChannelSpec {
pub channels: u8,
pub channel_stride: usize,
pub height: u32,
pub height_stride: usize,
pub width: u32,
pub width_stride: usize,
}
Expand description
The strides of uniformly spaced (color) channels.
Fields
channels: u8
channel_stride: usize
height: u32
height_stride: usize
width: u32
width_stride: usize
Trait Implementations
sourceimpl Clone for ChannelSpec
impl Clone for ChannelSpec
sourcefn clone(&self) -> ChannelSpec
fn clone(&self) -> ChannelSpec
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 ChannelSpec
impl Debug for ChannelSpec
sourceimpl PartialEq<ChannelSpec> for ChannelSpec
impl PartialEq<ChannelSpec> for ChannelSpec
sourcefn eq(&self, other: &ChannelSpec) -> bool
fn eq(&self, other: &ChannelSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChannelSpec) -> bool
fn ne(&self, other: &ChannelSpec) -> bool
This method tests for !=
.
impl StructuralPartialEq for ChannelSpec
Auto Trait Implementations
impl RefUnwindSafe for ChannelSpec
impl Send for ChannelSpec
impl Sync for ChannelSpec
impl Unpin for ChannelSpec
impl UnwindSafe for ChannelSpec
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