Struct dummy_pin::LastStateDummyPin
source · pub struct LastStateDummyPin { /* private fields */ }
Expand description
Dummy pin implementation which stores the last level set to it and returns it when read.
Note that this implementation is not zero-cost due to the need to update the level dynamically.
Implementations§
Trait Implementations§
source§impl Clone for LastStateDummyPin
impl Clone for LastStateDummyPin
source§fn clone(&self) -> LastStateDummyPin
fn clone(&self) -> LastStateDummyPin
Returns a copy 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 Debug for LastStateDummyPin
impl Debug for LastStateDummyPin
source§impl ErrorType for LastStateDummyPin
impl ErrorType for LastStateDummyPin
§type Error = Infallible
type Error = Infallible
Error type
source§impl Hash for LastStateDummyPin
impl Hash for LastStateDummyPin
source§impl InputPin for LastStateDummyPin
impl InputPin for LastStateDummyPin
source§impl Ord for LastStateDummyPin
impl Ord for LastStateDummyPin
source§fn cmp(&self, other: &LastStateDummyPin) -> Ordering
fn cmp(&self, other: &LastStateDummyPin) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl OutputPin for LastStateDummyPin
impl OutputPin for LastStateDummyPin
source§impl PartialEq for LastStateDummyPin
impl PartialEq for LastStateDummyPin
source§fn eq(&self, other: &LastStateDummyPin) -> bool
fn eq(&self, other: &LastStateDummyPin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LastStateDummyPin
impl PartialOrd for LastStateDummyPin
source§fn partial_cmp(&self, other: &LastStateDummyPin) -> Option<Ordering>
fn partial_cmp(&self, other: &LastStateDummyPin) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LastStateDummyPin
impl Eq for LastStateDummyPin
impl StructuralEq for LastStateDummyPin
impl StructuralPartialEq for LastStateDummyPin
Auto Trait Implementations§
impl RefUnwindSafe for LastStateDummyPin
impl Send for LastStateDummyPin
impl Sync for LastStateDummyPin
impl Unpin for LastStateDummyPin
impl UnwindSafe for LastStateDummyPin
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