Struct crabik_board::digital::v1_compat::OldInputPin [−][src]
Wrapper to allow fallible v2::InputPin
traits to be converted to v1::InputPin
traits
where errors will panic.
Implementations
impl<T, E> OldInputPin<T> where
T: InputPin<Error = E>,
E: Debug,
[src]
T: InputPin<Error = E>,
E: Debug,
pub fn new(pin: T) -> OldInputPin<T>
[src]
Create an OldInputPin
wrapper around a v2::InputPin
.
Trait Implementations
impl<T, E> From<T> for OldInputPin<T> where
T: InputPin<Error = E>,
E: Debug,
[src]
T: InputPin<Error = E>,
E: Debug,
pub fn from(pin: T) -> OldInputPin<T>
[src]
impl<T, E> InputPin for OldInputPin<T> where
T: InputPin<Error = E>,
E: Debug,
[src]
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> Send for OldInputPin<T> where
T: Send,
T: Send,
impl<T> Sync for OldInputPin<T> where
T: Sync,
T: Sync,
impl<T> Unpin for OldInputPin<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> InputPin for T where
T: InputPin,
[src]
T: InputPin,
type Error = ()
Error type
pub fn is_low(&self) -> Result<bool, <T as InputPin>::Error>
[src]
pub fn is_high(&self) -> Result<bool, <T as InputPin>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,