Enum gfx::format::ChannelType
source · pub enum ChannelType {
Int,
Uint,
Inorm,
Unorm,
Float,
Srgb,
}
Expand description
Type of a surface channel. This is how we interpret the
storage allocated with SurfaceType
.
Variants§
Trait Implementations§
source§impl Clone for ChannelType
impl Clone for ChannelType
source§fn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
Returns a copy 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 moresource§impl Debug for ChannelType
impl Debug for ChannelType
source§impl Hash for ChannelType
impl Hash for ChannelType
source§impl Ord for ChannelType
impl Ord for ChannelType
source§fn cmp(&self, other: &ChannelType) -> Ordering
fn cmp(&self, other: &ChannelType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ChannelType> for ChannelType
impl PartialEq<ChannelType> for ChannelType
source§fn eq(&self, other: &ChannelType) -> bool
fn eq(&self, other: &ChannelType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChannelType> for ChannelType
impl PartialOrd<ChannelType> for ChannelType
source§fn partial_cmp(&self, other: &ChannelType) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more