pub struct AnyAdcChannel<'a, 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.
Implementations§
Source§impl<T> AnyAdcChannel<'_, T>
impl<T> AnyAdcChannel<'_, T>
pub fn get_hw_channel(&self) -> u8
Trait Implementations§
Source§impl<T: AnyInstance> AdcChannel<T> for AnyAdcChannel<'_, T>
impl<T: AnyInstance> AdcChannel<T> for AnyAdcChannel<'_, T>
fn degrade_adc<'a>(self) -> AnyAdcChannel<'a, T>where
Self: 'a,
Auto Trait Implementations§
impl<'a, T> Freeze for AnyAdcChannel<'a, T>
impl<'a, T> RefUnwindSafe for AnyAdcChannel<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for AnyAdcChannel<'a, T>where
T: Send,
impl<'a, T> Sync for AnyAdcChannel<'a, T>where
T: Sync,
impl<'a, T> Unpin for AnyAdcChannel<'a, T>
impl<'a, T> !UnwindSafe for AnyAdcChannel<'a, T>
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