Struct exr::image::AnyChannels
source · pub struct AnyChannels<Samples> {
pub list: SmallVec<[AnyChannel<Samples>; 4]>,
}
Expand description
A dynamic list of arbitrary channels.
Samples
can currently only be FlatSamples
or Levels<FlatSamples>
.
Fields§
§list: SmallVec<[AnyChannel<Samples>; 4]>
This list must be sorted alphabetically, by channel name.
Use AnyChannels::sorted
for automatic sorting.
Implementations§
source§impl<SampleData> AnyChannels<SampleData>
impl<SampleData> AnyChannels<SampleData>
sourcepub fn sort(list: SmallVec<[AnyChannel<SampleData>; 4]>) -> Self
pub fn sort(list: SmallVec<[AnyChannel<SampleData>; 4]>) -> Self
A new list of arbitrary channels. Sorts the list to make it alphabetically stable.
Trait Implementations§
source§impl<Samples: Clone> Clone for AnyChannels<Samples>
impl<Samples: Clone> Clone for AnyChannels<Samples>
source§fn clone(&self) -> AnyChannels<Samples>
fn clone(&self) -> AnyChannels<Samples>
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<Samples: Debug> Debug for AnyChannels<Samples>
impl<Samples: Debug> Debug for AnyChannels<Samples>
source§impl<Samples: PartialEq> PartialEq for AnyChannels<Samples>
impl<Samples: PartialEq> PartialEq for AnyChannels<Samples>
source§fn eq(&self, other: &AnyChannels<Samples>) -> bool
fn eq(&self, other: &AnyChannels<Samples>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<S> ValidateResult for AnyChannels<S>where
S: ValidateResult,
impl<S> ValidateResult for AnyChannels<S>where
S: ValidateResult,
source§fn validate_result(
&self,
other: &Self,
options: ValidationOptions,
location: impl Fn() -> String,
) -> ValidationResult
fn validate_result( &self, other: &Self, options: ValidationOptions, location: impl Fn() -> String, ) -> ValidationResult
Compare self with the other.
Exceptional behaviour: Read more
source§fn assert_equals_result(&self, result: &Self)
fn assert_equals_result(&self, result: &Self)
Compare self with the other. Panics if not equal. Read more
source§impl<'samples, Samples> WritableChannels<'samples> for AnyChannels<Samples>where
Samples: 'samples + WritableSamples<'samples>,
impl<'samples, Samples> WritableChannels<'samples> for AnyChannels<Samples>where
Samples: 'samples + WritableSamples<'samples>,
source§fn infer_channel_list(&self) -> ChannelList
fn infer_channel_list(&self) -> ChannelList
Generate the file meta data for this list of channel
source§fn infer_level_modes(&self) -> (LevelMode, RoundingMode)
fn infer_level_modes(&self) -> (LevelMode, RoundingMode)
Generate the file meta data of whether and how resolution levels should be stored in the file
§type Writer = AnyChannelsWriter<<Samples as WritableSamples<'samples>>::Writer>
type Writer = AnyChannelsWriter<<Samples as WritableSamples<'samples>>::Writer>
The type of temporary writer
source§fn create_writer(&'samples self, header: &Header) -> Self::Writer
fn create_writer(&'samples self, header: &Header) -> Self::Writer
Create a temporary writer for this list of channels
impl<Samples> StructuralPartialEq for AnyChannels<Samples>
Auto Trait Implementations§
impl<Samples> Freeze for AnyChannels<Samples>where
Samples: Freeze,
impl<Samples> RefUnwindSafe for AnyChannels<Samples>where
Samples: RefUnwindSafe,
impl<Samples> Send for AnyChannels<Samples>where
Samples: Send,
impl<Samples> Sync for AnyChannels<Samples>where
Samples: Sync,
impl<Samples> Unpin for AnyChannels<Samples>where
Samples: Unpin,
impl<Samples> UnwindSafe for AnyChannels<Samples>where
Samples: RefUnwindSafe + 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