Enum exr::meta::attribute::SampleType [−][src]
pub enum SampleType { U32, F16, F32, }
Expand description
The type of samples in this channel.
Variants
This channel contains 32-bit unsigned int values.
This channel contains 16-bit float values.
This channel contains 32-bit float values.
Implementations
impl SampleType
[src]
impl SampleType
[src]pub fn bytes_per_sample(&self) -> usize
[src]
pub fn bytes_per_sample(&self) -> usize
[src]How many bytes a single sample takes up.
pub fn write<W: Write>(&self, write: &mut W) -> UnitResult
[src]
pub fn write<W: Write>(&self, write: &mut W) -> UnitResult
[src]Without validation, write this instance to the byte stream.
Trait Implementations
impl Clone for SampleType
[src]
impl Clone for SampleType
[src]fn clone(&self) -> SampleType
[src]
fn clone(&self) -> SampleType
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for SampleType
[src]
impl Debug for SampleType
[src]impl Hash for SampleType
[src]
impl Hash for SampleType
[src]impl PartialEq<SampleType> for SampleType
[src]
impl PartialEq<SampleType> for SampleType
[src]impl Copy for SampleType
[src]
impl Eq for SampleType
[src]
impl StructuralEq for SampleType
[src]
impl StructuralPartialEq for SampleType
[src]
Auto Trait Implementations
impl RefUnwindSafe for SampleType
impl Send for SampleType
impl Sync for SampleType
impl Unpin for SampleType
impl UnwindSafe for SampleType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more