Struct exr::block::lines::LineSlice [−][src]
pub struct LineSlice<T> {
pub location: LineIndex,
pub value: T,
}Expand description
A single line of pixels. Use LineRef or LineRefMut for easier type names.
Fields
location: LineIndexWhere this line is located inside the image.
value: TThe raw bytes of the pixel line, either &[u8] or &mut [u8].
Must be re-interpreted as slice of f16, f32, or u32,
according to the channel data type.
Implementations
Writes the samples (f16, f32, u32 values) into this line value reference.
Use write_samples if there is not slice available.
Iterate over all samples in this line, from left to right.
The supplied get_line function returns the sample value
for a given sample index within the line,
which starts at zero for each individual line.
Use write_samples_from_slice if you already have a slice of samples.
Read the samples (f16, f32, u32 values) from this line value reference.
Use read_samples if there is not slice available.
Iterate over all samples in this line, from left to right.
Use read_sample_into_slice if you already have a slice of samples.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for LineSlice<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for LineSlice<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more