#[non_exhaustive]#[repr(u8)]pub enum ChannelType {
U8 = 1,
U16 = 2,
F32 = 4,
F16 = 5,
}Expand description
Channel storage type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
U8 = 1
8-bit unsigned integer (1 byte per channel).
U16 = 2
16-bit unsigned integer (2 bytes per channel).
F32 = 4
32-bit floating point (4 bytes per channel).
F16 = 5
IEEE 754 half-precision float (2 bytes per channel).
Implementations§
Source§impl ChannelType
impl ChannelType
Sourcepub const fn is_integer(self) -> bool
pub const fn is_integer(self) -> bool
Whether this is an integer type.
Trait Implementations§
Source§impl Clone for ChannelType
impl Clone for ChannelType
Source§fn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
Returns a duplicate 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 Display for ChannelType
impl Display for ChannelType
Source§impl Hash for ChannelType
impl Hash for ChannelType
Source§impl PartialEq for ChannelType
impl PartialEq for ChannelType
impl Copy for ChannelType
impl Eq for ChannelType
impl StructuralPartialEq for ChannelType
Auto Trait Implementations§
impl Freeze for ChannelType
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnsafeUnpin for ChannelType
impl UnwindSafe for ChannelType
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