[−][src]Struct exr::image::Line
A single line of pixels. May go across the whole image or just a tile section of it.
Fields
location: LineIndexWhere this line is located inside the image.
value: &'s [u8]The raw bytes of the pixel line. Must be re-interpreted as slice of f16, f32, or u32, according to the channel data type.
Methods
impl<'s> Line<'s>[src]
pub fn read_samples<T: Data>(&self, slice: &mut [T]) -> PassiveResult[src]
Read the values of this line into a slice of samples.
Panics if the slice is not as long as self.location.width.
pub fn sample_iter<T: Data>(&self) -> impl Iterator<Item = Result<T>> + '_[src]
Iterate over all samples in this line, from left to right.
Trait Implementations
impl<'s> Clone for Line<'s>[src]
impl<'s> Copy for Line<'s>[src]
impl<'s> Debug for Line<'s>[src]
impl<'s> Eq for Line<'s>[src]
impl<'s> PartialEq<Line<'s>> for Line<'s>[src]
impl<'s> StructuralEq for Line<'s>[src]
impl<'s> StructuralPartialEq for Line<'s>[src]
Auto Trait Implementations
impl<'s> RefUnwindSafe for Line<'s>
impl<'s> Send for Line<'s>
impl<'s> Sync for Line<'s>
impl<'s> Unpin for Line<'s>
impl<'s> UnwindSafe for Line<'s>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
ⓘImportant traits for &'_ mut Wfn borrow_mut(&mut self) -> &mut T[src]
ⓘImportant traits for &'_ mut W
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,