Enum libreda_sta::SignalTransition
source · pub enum SignalTransition {
Unipolar(EdgePolarity),
Bipolar,
}Expand description
Public exports. Type of a signal edge. Either rising (0->1), falling (1->0) or both of them.
Variants§
Trait Implementations§
source§impl Clone for SignalTransition
impl Clone for SignalTransition
source§fn clone(&self) -> SignalTransition
fn clone(&self) -> SignalTransition
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 SignalTransition
impl Debug for SignalTransition
source§impl From<EdgePolarity> for SignalTransition
impl From<EdgePolarity> for SignalTransition
source§fn from(p: EdgePolarity) -> Self
fn from(p: EdgePolarity) -> Self
Converts to this type from the input type.
source§impl Hash for SignalTransition
impl Hash for SignalTransition
source§impl PartialEq<SignalTransition> for SignalTransition
impl PartialEq<SignalTransition> for SignalTransition
source§fn eq(&self, other: &SignalTransition) -> bool
fn eq(&self, other: &SignalTransition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for SignalTransition
impl Eq for SignalTransition
impl StructuralEq for SignalTransition
impl StructuralPartialEq for SignalTransition
Auto Trait Implementations§
impl RefUnwindSafe for SignalTransition
impl Send for SignalTransition
impl Sync for SignalTransition
impl Unpin for SignalTransition
impl UnwindSafe for SignalTransition
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.