[][src]Enum device_driver::Bit

pub enum Bit {
    Set,
    Cleared,
}

A single bit

Can be used in register definitions instead of a bool

Variants

Set

The bit is set high

Cleared

The bit is set low

Implementations

impl Bit[src]

pub fn is_set(&self) -> bool[src]

Returns true if the bit is set

pub fn is_cleared(&self) -> bool[src]

Returns true if the bit is not set

Trait Implementations

impl Clone for Bit[src]

impl Copy for Bit[src]

impl Debug for Bit[src]

impl Eq for Bit[src]

impl From<Bit> for bool[src]

impl From<Bit> for u8[src]

impl From<Bit> for i128[src]

impl From<Bit> for u16[src]

impl From<Bit> for u32[src]

impl From<Bit> for u64[src]

impl From<Bit> for u128[src]

impl From<Bit> for i8[src]

impl From<Bit> for i16[src]

impl From<Bit> for i32[src]

impl From<Bit> for i64[src]

impl From<bool> for Bit[src]

impl From<i128> for Bit[src]

impl From<i16> for Bit[src]

impl From<i32> for Bit[src]

impl From<i64> for Bit[src]

impl From<i8> for Bit[src]

impl From<u128> for Bit[src]

impl From<u16> for Bit[src]

impl From<u32> for Bit[src]

impl From<u64> for Bit[src]

impl From<u8> for Bit[src]

impl PartialEq<Bit> for Bit[src]

impl StructuralEq for Bit[src]

impl StructuralPartialEq for Bit[src]

Auto Trait Implementations

impl Send for Bit

impl Sync for Bit

impl Unpin for Bit

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.