Type Definition exr::block::lines::LineRef [−][src]
type LineRef<'s> = LineSlice<&'s [u8]>;
Expand description
An reference to a single line of pixels. May go across the whole image or just a tile section of it.
This line contains an immutable slice that all samples will be read from.
Implementations
impl LineRef<'_>
[src]
impl LineRef<'_>
[src]pub fn read_samples_into_slice<T: Data>(self, slice: &mut [T]) -> UnitResult
[src]
pub fn read_samples_into_slice<T: Data>(self, slice: &mut [T]) -> UnitResult
[src]Read the samples (f16, f32, u32 values) from this line value reference.
Use read_samples
if there is not slice available.
pub fn read_samples<T: Data>(&self) -> impl Iterator<Item = Result<T>> + '_
[src]
pub fn read_samples<T: Data>(&self) -> impl Iterator<Item = Result<T>> + '_
[src]Iterate over all samples in this line, from left to right.
Use read_sample_into_slice
if you already have a slice of samples.