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 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)