pub struct B1;
Expand description
The type-level bit 1.
Implementations
Trait Implementations
sourceimpl<U: Unsigned> Add<B1> for UInt<U, B1>where
U: Add<B1>,
Add1<U>: Unsigned,
impl<U: Unsigned> Add<B1> for UInt<U, B1>where
U: Add<B1>,
Add1<U>: Unsigned,
UInt<U, B1> + B1 = UInt<U + B1, B0>
sourceimpl Ord for B1
impl Ord for B1
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<B1> for B1
impl PartialOrd<B1> for B1
sourcefn partial_cmp(&self, other: &B1) -> Option<Ordering>
fn partial_cmp(&self, other: &B1) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<U: Unsigned, B: Bit> Shl<B1> for UInt<U, B>
impl<U: Unsigned, B: Bit> Shl<B1> for UInt<U, B>
Shifting left a UInt
by a one bit: UInt<U, B> << B1 = UInt<UInt<U, B>, B0>
sourceimpl<U: Unsigned, B: Bit> Shr<B1> for UInt<U, B>
impl<U: Unsigned, B: Bit> Shr<B1> for UInt<U, B>
Shifting right a UInt
by a 1 bit: UInt<U, B> >> B1 = U
sourceimpl<U: Unsigned> Sub<B1> for UInt<U, B0>where
U: Sub<B1>,
Sub1<U>: Unsigned,
impl<U: Unsigned> Sub<B1> for UInt<U, B0>where
U: Sub<B1>,
Sub1<U>: Unsigned,
UInt<U, B0> - B1 = UInt<U - B1, B1>
impl Copy for B1
impl Eq for B1
impl NonZero for B1
impl PowerOfTwo for B1
impl StructuralEq for B1
impl StructuralPartialEq for B1
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more