Struct ruduino::RegisterBits [−][src]
Represents a set of bits within a specific register.
Implementations
impl<R> RegisterBits<R> where
R: Register,
[src]
R: Register,
Trait Implementations
impl<R> BitAnd<RegisterBits<R>> for RegisterBits<R> where
R: Register,
[src]
R: Register,
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self) -> Self
[src]
impl<R> BitAndAssign<RegisterBits<R>> for RegisterBits<R> where
R: Register,
[src]
R: Register,
fn bitand_assign(&mut self, rhs: Self)
[src]
impl<R> BitOr<RegisterBits<R>> for RegisterBits<R> where
R: Register,
[src]
R: Register,
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
impl<R> BitOrAssign<RegisterBits<R>> for RegisterBits<R> where
R: Register,
[src]
R: Register,
fn bitor_assign(&mut self, rhs: Self)
[src]
impl<R: Clone + Register> Clone for RegisterBits<R> where
R::T: Clone,
[src]
R::T: Clone,
fn clone(&self) -> RegisterBits<R>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: Copy + Register> Copy for RegisterBits<R> where
R::T: Copy,
[src]
R::T: Copy,
impl<R: Debug + Register> Debug for RegisterBits<R> where
R::T: Debug,
[src]
R::T: Debug,
impl<R: Eq + Register> Eq for RegisterBits<R> where
R::T: Eq,
[src]
R::T: Eq,
impl<R: Hash + Register> Hash for RegisterBits<R> where
R::T: Hash,
[src]
R::T: Hash,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<R> Not for RegisterBits<R> where
R: Register,
[src]
R: Register,
impl<R: Ord + Register> Ord for RegisterBits<R> where
R::T: Ord,
[src]
R::T: Ord,
fn cmp(&self, other: &RegisterBits<R>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<R: PartialEq + Register> PartialEq<RegisterBits<R>> for RegisterBits<R> where
R::T: PartialEq,
[src]
R::T: PartialEq,
fn eq(&self, other: &RegisterBits<R>) -> bool
[src]
fn ne(&self, other: &RegisterBits<R>) -> bool
[src]
impl<R: PartialOrd + Register> PartialOrd<RegisterBits<R>> for RegisterBits<R> where
R::T: PartialOrd,
[src]
R::T: PartialOrd,
fn partial_cmp(&self, other: &RegisterBits<R>) -> Option<Ordering>
[src]
fn lt(&self, other: &RegisterBits<R>) -> bool
[src]
fn le(&self, other: &RegisterBits<R>) -> bool
[src]
fn gt(&self, other: &RegisterBits<R>) -> bool
[src]
fn ge(&self, other: &RegisterBits<R>) -> bool
[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]
R: Send,
<R as Register>::T: Send,
impl<R> Sync for RegisterBits<R> where
R: Sync,
<R as Register>::T: Sync,
[src]
R: Sync,
<R as Register>::T: Sync,
impl<R> Unpin for RegisterBits<R> where
R: Unpin,
<R as Register>::T: Unpin,
[src]
R: Unpin,
<R as Register>::T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,