Struct inverted_pin::InvertedPin
source · [−]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
sourceimpl<P> InvertedPin<P>
impl<P> InvertedPin<P>
Trait Implementations
sourceimpl<P: Clone> Clone for InvertedPin<P>
impl<P: Clone> Clone for InvertedPin<P>
sourcefn clone(&self) -> InvertedPin<P>
fn clone(&self) -> InvertedPin<P>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<P: Debug> Debug for InvertedPin<P>
impl<P: Debug> Debug for InvertedPin<P>
sourceimpl<P, E> InputPin for InvertedPin<P> where
P: InputPin<Error = E>,
impl<P, E> InputPin for InvertedPin<P> where
P: InputPin<Error = E>,
sourceimpl<P, E> OutputPin for InvertedPin<P> where
P: OutputPin<Error = E>,
impl<P, E> OutputPin for InvertedPin<P> where
P: OutputPin<Error = E>,
type Error = E
type Error = E
Error type
sourceimpl<P, E> StatefulOutputPin for InvertedPin<P> where
P: StatefulOutputPin<Error = E>,
impl<P, E> StatefulOutputPin for InvertedPin<P> where
P: StatefulOutputPin<Error = E>,
sourceimpl<P, E> ToggleableOutputPin for InvertedPin<P> where
P: ToggleableOutputPin<Error = E>,
impl<P, E> ToggleableOutputPin for InvertedPin<P> where
P: ToggleableOutputPin<Error = E>,
impl<P: Copy> Copy for InvertedPin<P>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more