Struct embedded_hal::digital::v1_compat::OldInputPin
source · pub struct OldInputPin<T> { /* private fields */ }
Expand description
Wrapper to allow fallible v2::InputPin
traits to be converted to v1::InputPin
traits
where errors will panic.
Implementations§
Trait Implementations§
source§impl<T, E> InputPin for OldInputPin<T>where
T: InputPin<Error = E>,
E: Debug,
impl<T, E> InputPin for OldInputPin<T>where T: InputPin<Error = E>, E: Debug,
Implementation of v1::InputPin
trait for v2::InputPin
fallible pins
where errors will panic.
Auto Trait Implementations§
impl<T> RefUnwindSafe for OldInputPin<T>where T: RefUnwindSafe,
impl<T> Send for OldInputPin<T>where T: Send,
impl<T> Sync for OldInputPin<T>where T: Sync,
impl<T> Unpin for OldInputPin<T>where T: Unpin,
impl<T> UnwindSafe for OldInputPin<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