Struct exr::image::read::specific_channels::SampleReader
source · pub struct SampleReader<Sample> {
channel_byte_offset: usize,
channel: ChannelDescription,
px: PhantomData<Sample>,
}
Expand description
Reader for a single channel. Generic over the concrete sample type (f16, f32, u32).
Fields§
§channel_byte_offset: usize
to be multiplied with line width!
channel: ChannelDescription
§px: PhantomData<Sample>
Implementations§
source§impl<Sample: FromNativeSample> SampleReader<Sample>
impl<Sample: FromNativeSample> SampleReader<Sample>
fn read_own_samples<'s, FullPixel>( &self, bytes: &'s [u8], pixels: &mut [FullPixel], get_sample: impl Fn(&mut FullPixel) -> &mut Sample, )
Trait Implementations§
source§impl<Sample: Clone> Clone for SampleReader<Sample>
impl<Sample: Clone> Clone for SampleReader<Sample>
source§fn clone(&self) -> SampleReader<Sample>
fn clone(&self) -> SampleReader<Sample>
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<Sample> Freeze for SampleReader<Sample>
impl<Sample> RefUnwindSafe for SampleReader<Sample>where
Sample: RefUnwindSafe,
impl<Sample> Send for SampleReader<Sample>where
Sample: Send,
impl<Sample> Sync for SampleReader<Sample>where
Sample: Sync,
impl<Sample> Unpin for SampleReader<Sample>where
Sample: Unpin,
impl<Sample> UnwindSafe for SampleReader<Sample>where
Sample: 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
)