pub struct AnyAdcChannel<T> { /* private fields */ }
Expand description
A type-erased channel for a given ADC instance.
This is useful in scenarios where you need the ADC channels to have the same type, such as storing them in an array.
Trait Implementations§
source§impl<T: Instance> AdcChannel<T> for AnyAdcChannel<T>
impl<T: Instance> AdcChannel<T> for AnyAdcChannel<T>
fn degrade_adc(self) -> AnyAdcChannel<T>
Auto Trait Implementations§
impl<T> Freeze for AnyAdcChannel<T>
impl<T> RefUnwindSafe for AnyAdcChannel<T>where
T: RefUnwindSafe,
impl<T> Send for AnyAdcChannel<T>where
T: Send,
impl<T> Sync for AnyAdcChannel<T>where
T: Sync,
impl<T> Unpin for AnyAdcChannel<T>where
T: Unpin,
impl<T> UnwindSafe for AnyAdcChannel<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more