Struct nucleo_f401re::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§
source§impl<T, E> OldInputPin<T>where
T: InputPin<Error = E>,
E: Debug,
impl<T, E> OldInputPin<T>where
T: InputPin<Error = E>,
E: Debug,
sourcepub fn new(pin: T) -> OldInputPin<T>
pub fn new(pin: T) -> OldInputPin<T>
Create an OldInputPin
wrapper around a v2::InputPin
.
Trait Implementations§
source§impl<T, E> From<T> for OldInputPin<T>where
T: InputPin<Error = E>,
E: Debug,
impl<T, E> From<T> for OldInputPin<T>where
T: InputPin<Error = E>,
E: Debug,
source§fn from(pin: T) -> OldInputPin<T>
fn from(pin: T) -> OldInputPin<T>
Converts to this type from the input type.
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.