pub enum LogicLevel {
Low,
High,
}
Expand description
Represents the logic level of a pin. For simplicity, we only model HIGH and LOW, not floating or undefined states.
Variants§
Trait Implementations§
Source§impl Clone for LogicLevel
impl Clone for LogicLevel
Source§fn clone(&self) -> LogicLevel
fn clone(&self) -> LogicLevel
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 LogicLevel
impl Debug for LogicLevel
Source§impl Default for LogicLevel
impl Default for LogicLevel
Source§impl From<LogicLevel> for bool
impl From<LogicLevel> for bool
Source§fn from(value: LogicLevel) -> Self
fn from(value: LogicLevel) -> Self
Converts a LogicLevel to a boolean (High -> true, Low -> false).
Source§impl From<bool> for LogicLevel
impl From<bool> for LogicLevel
Source§impl Not for LogicLevel
impl Not for LogicLevel
Source§impl PartialEq for LogicLevel
impl PartialEq for LogicLevel
impl Copy for LogicLevel
impl Eq for LogicLevel
impl StructuralPartialEq for LogicLevel
Auto Trait Implementations§
impl Freeze for LogicLevel
impl RefUnwindSafe for LogicLevel
impl Send for LogicLevel
impl Sync for LogicLevel
impl Unpin for LogicLevel
impl UnwindSafe for LogicLevel
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