Struct ReadAllLayers

pub struct ReadAllLayers<ReadChannels> { pub read_channels: ReadChannels }

Specify to read all channels, aborting if any one is invalid. ReadRgbaChannels or [ReadAnyChannels<ReadFlatSamples>].

Fields

read_channels: ReadChannels

The channel reading specification

Trait Implementations

impl<'s, C> ReadLayers<'s> for ReadAllLayers<C> where C: ReadChannels<'s>,

type Layers = SmallVec<[Layer<<<C as ReadChannels<'s>>::Reader as ChannelsReader>::Channels>; 2]>;
type Reader = AllLayersReader<<C as ReadChannels<'s>>::Reader>;
fn create_layers_reader(&'s self, headers: &[Header]) -> Result<Self::Reader>

impl<ReadChannels: Clone> Clone for ReadAllLayers<ReadChannels>

fn clone(&self) -> Self

impl<ReadChannels: Debug> Debug for ReadAllLayers<ReadChannels>

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

impl<ReadChannels: Eq> Eq for ReadAllLayers<ReadChannels>

impl<ReadChannels: PartialEq> PartialEq for ReadAllLayers<ReadChannels>

fn eq(&self, other: &Self) -> bool

impl<ReadChannels: PartialEq> StructuralPartialEq for ReadAllLayers<ReadChannels>

Auto Trait Implementations

impl<ReadChannels> Freeze for ReadAllLayers<ReadChannels> where ReadChannels: Freeze,

impl<ReadChannels> RefUnwindSafe for ReadAllLayers<ReadChannels> where ReadChannels: RefUnwindSafe,

impl<ReadChannels> Send for ReadAllLayers<ReadChannels> where ReadChannels: Send,

impl<ReadChannels> Sync for ReadAllLayers<ReadChannels> where ReadChannels: Sync,

impl<ReadChannels> Unpin for ReadAllLayers<ReadChannels> where ReadChannels: Unpin,

impl<ReadChannels> UnsafeUnpin for ReadAllLayers<ReadChannels> where ReadChannels: UnsafeUnpin,

impl<ReadChannels> UnwindSafe for ReadAllLayers<ReadChannels> where ReadChannels: UnwindSafe,

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ReadAllLayers<ReadChannels> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ReadAllLayers<ReadChannels> where ST: ?Sized, DT: ?Sized,

impl<T> Any for ReadAllLayers<ReadChannels> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ReadAllLayers<ReadChannels> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ReadAllLayers<ReadChannels> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for ReadAllLayers<ReadChannels> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for ReadAllLayers<ReadChannels>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for ReadAllLayers<ReadChannels>

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> Read<Exclusive, BecauseExclusive> for ReadAllLayers<ReadChannels> where T: ?Sized,

impl<T> ToOwned for ReadAllLayers<ReadChannels> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for ReadAllLayers<ReadChannels> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ReadAllLayers<ReadChannels> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ReadAllLayers<ReadChannels> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>