[−][src]Struct exr::meta::attributes::ChannelList
A List of channels. Channels must be sorted alphabetically.
Fields
list: SmallVec<[Channel; 5]>The channels in this list.
bytes_per_pixel: usizeThe number of bytes that one pixel in this image needs.
Methods
impl ChannelList[src]
impl ChannelList[src]
pub fn byte_size(&self) -> usize[src]
Number of bytes this would consume in an exr file.
pub fn write(&self, write: &mut impl Write) -> PassiveResult[src]
Without validation, write this instance to the byte stream. Assumes channels are sorted alphabetically and all values are validated.
pub fn read(read: &mut PeekRead<impl Read>) -> Result<Self>[src]
Read the value without validating.
pub fn validate(&self, allow_sampling: bool, strict: bool) -> PassiveResult[src]
Check if channels are valid and sorted.
Trait Implementations
impl Clone for ChannelList[src]
fn clone(&self) -> ChannelList[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ChannelList[src]
impl Eq for ChannelList[src]
impl PartialEq<ChannelList> for ChannelList[src]
fn eq(&self, other: &ChannelList) -> bool[src]
fn ne(&self, other: &ChannelList) -> bool[src]
impl StructuralEq for ChannelList[src]
impl StructuralPartialEq for ChannelList[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelList
impl Send for ChannelList
impl Sync for ChannelList
impl Unpin for ChannelList
impl UnwindSafe for ChannelList
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>,