Struct exr::image::read::any_channels::ReadAnyChannels
source · 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§
source§impl<ReadSamples: Clone> Clone for ReadAnyChannels<ReadSamples>
impl<ReadSamples: Clone> Clone for ReadAnyChannels<ReadSamples>
source§fn clone(&self) -> ReadAnyChannels<ReadSamples>
fn clone(&self) -> ReadAnyChannels<ReadSamples>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<ReadSamples: Debug> Debug for ReadAnyChannels<ReadSamples>
impl<ReadSamples: Debug> Debug for ReadAnyChannels<ReadSamples>
source§impl<ReadSamples: PartialEq> PartialEq for ReadAnyChannels<ReadSamples>
impl<ReadSamples: PartialEq> PartialEq for ReadAnyChannels<ReadSamples>
source§fn eq(&self, other: &ReadAnyChannels<ReadSamples>) -> bool
fn eq(&self, other: &ReadAnyChannels<ReadSamples>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl<'s, S: 's + ReadSamples> ReadChannels<'s> for ReadAnyChannels<S>
impl<'s, S: 's + ReadSamples> ReadChannels<'s> for ReadAnyChannels<S>
source§type Reader = AnyChannelsReader<<S as ReadSamples>::Reader>
type Reader = AnyChannelsReader<<S as ReadSamples>::Reader>
The type of the temporary channels reader
source§fn create_channels_reader(&self, header: &Header) -> Result<Self::Reader>
fn create_channels_reader(&self, header: &Header) -> Result<Self::Reader>
Create a single reader for all channels of a specific layer
source§fn first_valid_layer(self) -> ReadFirstValidLayer<Self>where
Self: Sized,
fn first_valid_layer(self) -> ReadFirstValidLayer<Self>where
Self: Sized,
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.
source§fn all_layers(self) -> ReadAllLayers<Self>where
Self: Sized,
fn all_layers(self) -> ReadAllLayers<Self>where
Self: Sized,
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.
impl<ReadSamples: Eq> Eq for ReadAnyChannels<ReadSamples>
impl<ReadSamples> StructuralPartialEq for ReadAnyChannels<ReadSamples>
Auto Trait Implementations§
impl<ReadSamples> Freeze for ReadAnyChannels<ReadSamples>where
ReadSamples: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)