pub struct InvertedPin<P> { /* private fields */ }Expand description
Inverted input/output pin
If wrapping an output pin, whenever setting this pin to a high or low level, the wrapped pin will be set to the opposite level.
Likewise, if wrapping an input pin, whenever reading this pin it will read the wrapped input pin and return the opposite level.
Implementations§
Trait Implementations§
Source§impl<P: Clone> Clone for InvertedPin<P>
impl<P: Clone> Clone for InvertedPin<P>
Source§fn clone(&self) -> InvertedPin<P>
fn clone(&self) -> InvertedPin<P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug> Debug for InvertedPin<P>
impl<P: Debug> Debug for InvertedPin<P>
Source§impl<P, E> ErrorType for InvertedPin<P>
impl<P, E> ErrorType for InvertedPin<P>
Source§impl<P, E> InputPin for InvertedPin<P>
impl<P, E> InputPin for InvertedPin<P>
Source§impl<P, E> OutputPin for InvertedPin<P>
impl<P, E> OutputPin for InvertedPin<P>
Source§impl<P, E> StatefulOutputPin for InvertedPin<P>where
P: StatefulOutputPin<Error = E>,
E: Error,
impl<P, E> StatefulOutputPin for InvertedPin<P>where
P: StatefulOutputPin<Error = E>,
E: Error,
impl<P: Copy> Copy for InvertedPin<P>
Auto Trait Implementations§
impl<P> Freeze for InvertedPin<P>where
P: Freeze,
impl<P> RefUnwindSafe for InvertedPin<P>where
P: RefUnwindSafe,
impl<P> Send for InvertedPin<P>where
P: Send,
impl<P> Sync for InvertedPin<P>where
P: Sync,
impl<P> Unpin for InvertedPin<P>where
P: Unpin,
impl<P> UnwindSafe for InvertedPin<P>where
P: 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