Struct exr::image::read::specific_channels::OptionalSampleReader
source · pub struct OptionalSampleReader<DefaultSample> {
reader: Option<SampleReader<DefaultSample>>,
default_sample: DefaultSample,
}
Expand description
Reader for a single channel. Generic over the concrete sample type (f16, f32, u32). Can also skip reading a channel if it could not be found in the image.
Fields§
§reader: Option<SampleReader<DefaultSample>>
§default_sample: DefaultSample
Trait Implementations§
source§impl<DefaultSample: Clone> Clone for OptionalSampleReader<DefaultSample>
impl<DefaultSample: Clone> Clone for OptionalSampleReader<DefaultSample>
source§fn clone(&self) -> OptionalSampleReader<DefaultSample>
fn clone(&self) -> OptionalSampleReader<DefaultSample>
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 moreAuto Trait Implementations§
impl<DefaultSample> Freeze for OptionalSampleReader<DefaultSample>where
DefaultSample: Freeze,
impl<DefaultSample> RefUnwindSafe for OptionalSampleReader<DefaultSample>where
DefaultSample: RefUnwindSafe,
impl<DefaultSample> Send for OptionalSampleReader<DefaultSample>where
DefaultSample: Send,
impl<DefaultSample> Sync for OptionalSampleReader<DefaultSample>where
DefaultSample: Sync,
impl<DefaultSample> Unpin for OptionalSampleReader<DefaultSample>where
DefaultSample: Unpin,
impl<DefaultSample> UnwindSafe for OptionalSampleReader<DefaultSample>where
DefaultSample: UnwindSafe,
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
)