Enum SampleType
#[repr(u8)]pub enum SampleType {
U8 = 0,
U16 = 1,
F32 = 2,
}Expand description
Stored scalar type for plane samples.
Variants§
U8 = 0
Unsigned 8-bit integer sample.
U16 = 1
Unsigned 16-bit integer sample. Logical bit depths 9 through 16 are stored here.
F32 = 2
32-bit float sample.
Implementations§
§impl SampleType
impl SampleType
pub const fn bytes_per_sample(self) -> usize
pub const fn bytes_per_sample(self) -> usize
Returns byte size of one stored sample.
Trait Implementations§
§impl Clone for SampleType
impl Clone for SampleType
§fn clone(&self) -> SampleType
fn clone(&self) -> SampleType
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 more§impl Debug for SampleType
impl Debug for SampleType
§impl PartialEq for SampleType
impl PartialEq for SampleType
impl Copy for SampleType
impl Eq for SampleType
impl StructuralPartialEq for SampleType
Auto Trait Implementations§
impl Freeze for SampleType
impl RefUnwindSafe for SampleType
impl Send for SampleType
impl Sync for SampleType
impl Unpin for SampleType
impl UnsafeUnpin for SampleType
impl UnwindSafe for SampleType
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