Struct ReadOptionalChannel

pub struct ReadOptionalChannel<ReadChannels, Sample> { /* private fields */ }

Used to read another specific channel from an image. Contains the previous ReadChannels objects.

Trait Implementations

impl<DefaultSample, ReadChannels> ReadSpecificChannel for ReadOptionalChannel<ReadChannels, DefaultSample> where ReadChannels: ReadSpecificChannel, DefaultSample: FromNativeSample + 'static,

type RecursivePixelReader = Recursive<<ReadChannels as ReadSpecificChannel>::RecursivePixelReader, OptionalSampleReader<DefaultSample>>;
fn create_recursive_reader(&self, channels: &ChannelList) -> Result<Self::RecursivePixelReader>

impl<Inner: CheckDuplicates, Sample> CheckDuplicates for ReadOptionalChannel<Inner, Sample>

fn already_contains(&self, name: &Text) -> bool

impl<ReadChannels: Clone, Sample: Clone> Clone for ReadOptionalChannel<ReadChannels, Sample>

fn clone(&self) -> Self

impl<ReadChannels: Debug, Sample: Debug> Debug for ReadOptionalChannel<ReadChannels, Sample>

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

Auto Trait Implementations

impl<ReadChannels, Sample> Freeze for ReadOptionalChannel<ReadChannels, Sample> where ReadChannels: Freeze, Sample: Freeze,

impl<ReadChannels, Sample> RefUnwindSafe for ReadOptionalChannel<ReadChannels, Sample> where ReadChannels: RefUnwindSafe, Sample: RefUnwindSafe,

impl<ReadChannels, Sample> Send for ReadOptionalChannel<ReadChannels, Sample> where ReadChannels: Send, Sample: Send,

impl<ReadChannels, Sample> Sync for ReadOptionalChannel<ReadChannels, Sample> where ReadChannels: Sync, Sample: Sync,

impl<ReadChannels, Sample> Unpin for ReadOptionalChannel<ReadChannels, Sample> where ReadChannels: Unpin, Sample: Unpin,

impl<ReadChannels, Sample> UnsafeUnpin for ReadOptionalChannel<ReadChannels, Sample> where ReadChannels: UnsafeUnpin, Sample: UnsafeUnpin,

impl<ReadChannels, Sample> UnwindSafe for ReadOptionalChannel<ReadChannels, Sample> where ReadChannels: UnwindSafe, Sample: UnwindSafe,

Blanket Implementations

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for ReadOptionalChannel<ReadChannels, Sample> where T: Clone,

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

impl<T> From<T> for ReadOptionalChannel<ReadChannels, Sample>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for ReadOptionalChannel<ReadChannels, Sample>

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 ReadOptionalChannel<ReadChannels, Sample> where T: ?Sized,

impl<T> ToOwned for ReadOptionalChannel<ReadChannels, Sample> where T: Clone,

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

impl<T, U> Into<U> for ReadOptionalChannel<ReadChannels, Sample> 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 ReadOptionalChannel<ReadChannels, Sample> where U: Into<T>,

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

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

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