Enum Level
pub enum Level {
Low,
High,
}Expand description
Logical level of a pin.
With an active low pin, Level::High is the physical low level.
Variants§
Implementations§
§impl Level
impl Level
pub const fn is_high(self) -> bool
pub const fn is_high(self) -> bool
Returns whether the level is Level::High.
pub const fn is_low(self) -> bool
pub const fn is_low(self) -> bool
Returns whether the level is Level::Low.
pub(crate) const fn from_sysfs(value: &[u8]) -> Option<Self>
pub(crate) const fn from_sysfs(value: &[u8]) -> Option<Self>
Parses the content of a sysfs value file.
Trait Implementations§
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
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