Struct exr::image::read::any_channels::ReadAnyChannels[][src]

pub struct ReadAnyChannels<ReadSamples> {
    pub read_samples: ReadSamples,
}
Expand description

A template that creates an AnyChannelsReader for each layer in the image. This loads all channels for each layer. The ReadSamples can, for example, be [ReadFlatSamples] or [ReadAllLevels].

Fields

read_samples: ReadSamples

The sample reading specification

Trait Implementations

impl<ReadSamples: Clone> Clone for ReadAnyChannels<ReadSamples>[src]

fn clone(&self) -> ReadAnyChannels<ReadSamples>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<ReadSamples: Debug> Debug for ReadAnyChannels<ReadSamples>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<ReadSamples: PartialEq> PartialEq<ReadAnyChannels<ReadSamples>> for ReadAnyChannels<ReadSamples>[src]

fn eq(&self, other: &ReadAnyChannels<ReadSamples>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &ReadAnyChannels<ReadSamples>) -> bool[src]

This method tests for !=.

impl<'s, S: 's + ReadSamples> ReadChannels<'s> for ReadAnyChannels<S>[src]

type Reader = AnyChannelsReader<S::Reader>

The type of the temporary channels reader

fn create_channels_reader(&self, header: &Header) -> Result<Self::Reader>[src]

Create a single reader for all channels of a specific layer

fn first_valid_layer(self) -> ReadFirstValidLayer<Self> where
    Self: Sized
[src]

Read only the first layer which meets the previously specified requirements For example, skips layers with deep data, if specified earlier. Aborts if the image contains no layers. Read more

fn all_layers(self) -> ReadAllLayers<Self> where
    Self: Sized
[src]

Reads all layers, including an empty list. Aborts if any of the layers are invalid, even if only one of the layers contains unexpected data. Read more

impl<ReadSamples: Eq> Eq for ReadAnyChannels<ReadSamples>[src]

impl<ReadSamples> StructuralEq for ReadAnyChannels<ReadSamples>[src]

impl<ReadSamples> StructuralPartialEq for ReadAnyChannels<ReadSamples>[src]

Auto Trait Implementations

impl<ReadSamples> RefUnwindSafe for ReadAnyChannels<ReadSamples> where
    ReadSamples: RefUnwindSafe

impl<ReadSamples> Send for ReadAnyChannels<ReadSamples> where
    ReadSamples: Send

impl<ReadSamples> Sync for ReadAnyChannels<ReadSamples> where
    ReadSamples: Sync

impl<ReadSamples> Unpin for ReadAnyChannels<ReadSamples> where
    ReadSamples: Unpin

impl<ReadSamples> UnwindSafe for ReadAnyChannels<ReadSamples> where
    ReadSamples: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.