Struct ReadRequiredChannel

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

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

Trait Implementations

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

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

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

fn clone(&self) -> Self

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

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

impl<Sample, ReadChannels> ReadSpecificChannel for ReadRequiredChannel<ReadChannels, Sample> where ReadChannels: ReadSpecificChannel, Sample: FromNativeSample + 'static,

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

Auto Trait Implementations

impl<ReadChannels, Sample> Freeze for ReadRequiredChannel<ReadChannels, Sample> where ReadChannels: Freeze, PhantomData<Sample>: Freeze,

impl<ReadChannels, Sample> RefUnwindSafe for ReadRequiredChannel<ReadChannels, Sample> where ReadChannels: RefUnwindSafe, PhantomData<Sample>: RefUnwindSafe,

impl<ReadChannels, Sample> Send for ReadRequiredChannel<ReadChannels, Sample> where ReadChannels: Send, PhantomData<Sample>: Send,

impl<ReadChannels, Sample> Sync for ReadRequiredChannel<ReadChannels, Sample> where ReadChannels: Sync, PhantomData<Sample>: Sync,

impl<ReadChannels, Sample> Unpin for ReadRequiredChannel<ReadChannels, Sample> where ReadChannels: Unpin, PhantomData<Sample>: Unpin,

impl<ReadChannels, Sample> UnsafeUnpin for ReadRequiredChannel<ReadChannels, Sample> where ReadChannels: UnsafeUnpin, PhantomData<Sample>: UnsafeUnpin,

impl<ReadChannels, Sample> UnwindSafe for ReadRequiredChannel<ReadChannels, Sample> where ReadChannels: UnwindSafe, PhantomData<Sample>: UnwindSafe,

Blanket Implementations

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for ReadRequiredChannel<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 ReadRequiredChannel<ReadChannels, Sample> where T: ?Sized,

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

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

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

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