Enum SampleType
pub enum SampleType
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
impl SampleType
const fn bytes_per_sample(&self) -> usizeHow many bytes a single sample takes up.
const fn byte_size() -> usizeNumber of bytes this would consume in an exr file.
fn write<W: Write>(&self, write: &mut W) -> UnitResultWithout validation, write this instance to the byte stream.
fn read<R: Read>(read: &mut R) -> Result<Self>Read the value without validating.
Trait Implementations
impl Clone for SampleType
fn clone(&self) -> Self
impl Copy for SampleType
impl Debug for SampleType
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for SampleType
impl Hash for SampleType
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for SampleType
fn eq(&self, other: &Self) -> bool