pub enum SignalTransitionType {
Constant(Logic3),
Rise,
Fall,
Any,
}Expand description
Possible types of binary signal transitions.
Variants§
Constant(Logic3)
Signal is at constant (LOW, HIGH or unknown). No transition.
Rise
Signal transitions from LOW to HIGH.
Fall
Signal transitions from HIGH to LOW.
Any
Signal might or might not transition.
Implementations§
Source§impl SignalTransitionType
impl SignalTransitionType
Sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
Test if the signal is known to have a constant value.
Trait Implementations§
Source§impl Clone for SignalTransitionType
impl Clone for SignalTransitionType
Source§fn clone(&self) -> SignalTransitionType
fn clone(&self) -> SignalTransitionType
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 Debug for SignalTransitionType
impl Debug for SignalTransitionType
Source§impl From<RiseFall> for SignalTransitionType
impl From<RiseFall> for SignalTransitionType
Source§impl Hash for SignalTransitionType
impl Hash for SignalTransitionType
Source§impl PartialEq for SignalTransitionType
impl PartialEq for SignalTransitionType
impl Copy for SignalTransitionType
impl Eq for SignalTransitionType
impl StructuralPartialEq for SignalTransitionType
Auto Trait Implementations§
impl Freeze for SignalTransitionType
impl RefUnwindSafe for SignalTransitionType
impl Send for SignalTransitionType
impl Sync for SignalTransitionType
impl Unpin for SignalTransitionType
impl UnwindSafe for SignalTransitionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more