Struct ruduino::RegisterBits[][src]

pub struct RegisterBits<R: Register> { /* fields omitted */ }

Represents a set of bits within a specific register.

Implementations

impl<R> RegisterBits<R> where
    R: Register
[src]

pub const fn new(mask: R::T) -> Self[src]

Creates a new register mask.

pub fn zero() -> Self[src]

Trait Implementations

impl<R> BitAnd<RegisterBits<R>> for RegisterBits<R> where
    R: Register
[src]

type Output = Self

The resulting type after applying the & operator.

impl<R> BitAndAssign<RegisterBits<R>> for RegisterBits<R> where
    R: Register
[src]

impl<R> BitOr<RegisterBits<R>> for RegisterBits<R> where
    R: Register
[src]

type Output = Self

The resulting type after applying the | operator.

impl<R> BitOrAssign<RegisterBits<R>> for RegisterBits<R> where
    R: Register
[src]

impl<R: Clone + Register> Clone for RegisterBits<R> where
    R::T: Clone
[src]

impl<R: Copy + Register> Copy for RegisterBits<R> where
    R::T: Copy
[src]

impl<R: Debug + Register> Debug for RegisterBits<R> where
    R::T: Debug
[src]

impl<R: Eq + Register> Eq for RegisterBits<R> where
    R::T: Eq
[src]

impl<R: Hash + Register> Hash for RegisterBits<R> where
    R::T: Hash
[src]

impl<R> Not for RegisterBits<R> where
    R: Register
[src]

type Output = Self

The resulting type after applying the ! operator.

impl<R: Ord + Register> Ord for RegisterBits<R> where
    R::T: Ord
[src]

impl<R: PartialEq + Register> PartialEq<RegisterBits<R>> for RegisterBits<R> where
    R::T: PartialEq
[src]

impl<R: PartialOrd + Register> PartialOrd<RegisterBits<R>> for RegisterBits<R> where
    R::T: PartialOrd
[src]

impl<R: Register> StructuralEq for RegisterBits<R>[src]

impl<R: Register> StructuralPartialEq for RegisterBits<R>[src]

Auto Trait Implementations

impl<R> Send for RegisterBits<R> where
    R: Send,
    <R as Register>::T: Send
[src]

impl<R> Sync for RegisterBits<R> where
    R: Sync,
    <R as Register>::T: Sync
[src]

impl<R> Unpin for RegisterBits<R> where
    R: Unpin,
    <R as Register>::T: Unpin
[src]

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> From<T> for T[src]

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

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.