Enum gfx_hal::format::ChannelType
source · #[repr(u8)]
pub enum ChannelType {
Unorm,
Inorm,
Uint,
Int,
Ufloat,
Float,
Uscaled,
Iscaled,
Srgb,
}
Expand description
Type of a surface channel. This is how we interpret the
storage allocated with SurfaceType
.
Variants
Unorm
Unsigned normalized.
Inorm
Signed normalized.
Uint
Unsigned integer.
Int
Signed integer.
Ufloat
Unsigned floating-point.
Float
Signed floating-point.
Uscaled
Unsigned scaled integer.
Iscaled
Signed scaled integer.
Srgb
Unsigned normalized, SRGB non-linear encoded.
Trait Implementations
sourceimpl Clone for ChannelType
impl Clone for ChannelType
sourcefn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
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 moresourceimpl Debug for ChannelType
impl Debug for ChannelType
sourceimpl Hash for ChannelType
impl Hash for ChannelType
sourceimpl Ord for ChannelType
impl Ord for ChannelType
sourcefn cmp(&self, other: &ChannelType) -> Ordering
fn cmp(&self, other: &ChannelType) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ChannelType> for ChannelType
impl PartialEq<ChannelType> for ChannelType
sourcefn eq(&self, other: &ChannelType) -> bool
fn eq(&self, other: &ChannelType) -> bool
sourceimpl PartialOrd<ChannelType> for ChannelType
impl PartialOrd<ChannelType> for ChannelType
sourcefn partial_cmp(&self, other: &ChannelType) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelType) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Copy for ChannelType
impl Eq for ChannelType
impl StructuralEq for ChannelType
impl StructuralPartialEq for ChannelType
Auto Trait Implementations
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnwindSafe for ChannelType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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