[go: up one dir, main page]

[][src]Struct exr::image::Line

pub struct Line<'s> {
    pub location: LineIndex,
    pub value: &'s [u8],
}

A single line of pixels. May go across the whole image or just a tile section of it.

Fields

location: LineIndex

Where 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.