Struct OptionalSampleReader
pub struct OptionalSampleReader<DefaultSample> { /* private fields */ }
Reader for a single channel. Generic over the concrete sample type (f16, f32, u32). Can also skip reading a channel if it could not be found in the image.
Trait Implementations
impl<DefaultSample: Clone> Clone for OptionalSampleReader<DefaultSample>
fn clone(&self) -> Self
impl<DefaultSample: Debug> Debug for OptionalSampleReader<DefaultSample>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<DefaultSample> Freeze for OptionalSampleReader<DefaultSample>
where
Option<SampleReader<DefaultSample>>: Freeze,
DefaultSample: Freeze,
impl<DefaultSample> RefUnwindSafe for OptionalSampleReader<DefaultSample>
where
Option<SampleReader<DefaultSample>>: RefUnwindSafe,
DefaultSample: RefUnwindSafe,
impl<DefaultSample> Send for OptionalSampleReader<DefaultSample>
where
Option<SampleReader<DefaultSample>>: Send,
DefaultSample: Send,
impl<DefaultSample> Sync for OptionalSampleReader<DefaultSample>
where
Option<SampleReader<DefaultSample>>: Sync,
DefaultSample: Sync,
impl<DefaultSample> Unpin for OptionalSampleReader<DefaultSample>
where
Option<SampleReader<DefaultSample>>: Unpin,
DefaultSample: Unpin,
impl<DefaultSample> UnsafeUnpin for OptionalSampleReader<DefaultSample>
where
Option<SampleReader<DefaultSample>>: UnsafeUnpin,
DefaultSample: UnsafeUnpin,
impl<DefaultSample> UnwindSafe for OptionalSampleReader<DefaultSample>
where
Option<SampleReader<DefaultSample>>: UnwindSafe,
DefaultSample: UnwindSafe,
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for OptionalSampleReader<DefaultSample>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for OptionalSampleReader<DefaultSample>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for OptionalSampleReader<DefaultSample>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for OptionalSampleReader<DefaultSample>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for OptionalSampleReader<DefaultSample>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for OptionalSampleReader<DefaultSample>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for OptionalSampleReader<DefaultSample>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for OptionalSampleReader<DefaultSample>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for OptionalSampleReader<DefaultSample>
where
T: ?Sized,
impl<T> ToOwned for OptionalSampleReader<DefaultSample>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for OptionalSampleReader<DefaultSample>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for OptionalSampleReader<DefaultSample>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for OptionalSampleReader<DefaultSample>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>