Enum exr::meta::attribute::SampleType
source · pub enum SampleType {
U32,
F16,
F32,
}
Expand description
The type of samples in this channel.
Variants§
U32
This channel contains 32-bit unsigned int values.
F16
This channel contains 16-bit float values.
F32
This channel contains 32-bit float values.
Implementations§
source§impl SampleType
impl SampleType
sourcepub fn bytes_per_sample(&self) -> usize
pub fn bytes_per_sample(&self) -> usize
How many bytes a single sample takes up.
sourcepub fn write<W: Write>(&self, write: &mut W) -> UnitResult
pub fn write<W: Write>(&self, write: &mut W) -> UnitResult
Without validation, write this instance to the byte stream.
Trait Implementations§
source§impl Clone for SampleType
impl Clone for SampleType
source§fn clone(&self) -> SampleType
fn clone(&self) -> SampleType
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 SampleType
impl Debug for SampleType
source§impl Hash for SampleType
impl Hash for SampleType
source§impl PartialEq<SampleType> for SampleType
impl PartialEq<SampleType> for SampleType
source§fn eq(&self, other: &SampleType) -> bool
fn eq(&self, other: &SampleType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.