Struct heapless::consts::B1 [−][src]
The type-level bit 1.
Implementations
impl B1
[src]
Trait Implementations
impl Bit for B1
[src]
pub const U8: u8
[src]
pub const BOOL: bool
[src]
pub fn to_u8() -> u8
[src]
pub fn to_bool() -> bool
[src]
impl BitAnd<B0> for B1
[src]
And with 1 ( 1 & 0 = 0)
type Output = B0
The resulting type after applying the &
operator.
pub fn bitand(self, B0) -> <B1 as BitAnd<B0>>::Output
[src]
impl BitAnd<B1> for B1
[src]
And with 1 ( 1 & 1 = 1)
type Output = B1
The resulting type after applying the &
operator.
pub fn bitand(self, B1) -> <B1 as BitAnd<B1>>::Output
[src]
impl BitOr<B1> for B0
[src]
Or with 0 ( 0 | 1 = 1)
type Output = B1
The resulting type after applying the |
operator.
pub fn bitor(self, B1) -> <B0 as BitOr<B1>>::Output
[src]
impl<Rhs> BitOr<Rhs> for B1 where
Rhs: Bit,
[src]
Rhs: Bit,
Or with 1 ( 1 | B = 1)
type Output = B1
The resulting type after applying the |
operator.
pub fn bitor(self, Rhs) -> <B1 as BitOr<Rhs>>::Output
[src]
impl BitXor<B0> for B1
[src]
Xor between 1 and 0 ( 1 ^ 0 = 1)
type Output = B1
The resulting type after applying the ^
operator.
pub fn bitxor(self, B0) -> <B1 as BitXor<B0>>::Output
[src]
impl BitXor<B1> for B0
[src]
Xor between 0 and 1 ( 0 ^ 1 = 1)
type Output = B1
The resulting type after applying the ^
operator.
pub fn bitxor(self, B1) -> <B0 as BitXor<B1>>::Output
[src]
impl BitXor<B1> for B1
[src]
Xor between 1 and 1 ( 1 ^ 1 = 0)
type Output = B0
The resulting type after applying the ^
operator.
pub fn bitxor(self, B1) -> <B1 as BitXor<B1>>::Output
[src]
impl Clone for B1
[src]
impl Cmp<B0> for B1
[src]
type Output = Greater
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
pub fn compare<P>(&self, &B0) -> <B1 as Cmp<B0>>::Output where
P: InternalMarker,
[src]
P: InternalMarker,
impl Cmp<B1> for B1
[src]
type Output = Equal
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
pub fn compare<P>(&self, &B1) -> <B1 as Cmp<B1>>::Output where
P: InternalMarker,
[src]
P: InternalMarker,
impl Cmp<B1> for B0
[src]
type Output = Less
The result of the comparison. It should only ever be one of Greater
, Less
, or Equal
.
pub fn compare<P>(&self, &B1) -> <B0 as Cmp<B1>>::Output where
P: InternalMarker,
[src]
P: InternalMarker,
impl Copy for B1
[src]
impl Debug for B1
[src]
impl Default for B1
[src]
impl Eq for B1
[src]
impl Hash for B1
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Max<B0> for B1
[src]
impl Max<B1> for B1
[src]
impl Max<B1> for B0
[src]
impl Min<B0> for B1
[src]
impl Min<B1> for B0
[src]
impl Min<B1> for B1
[src]
impl NonZero for B1
[src]
impl Not for B1
[src]
Not of 1 (!1 = 0)
type Output = B0
The resulting type after applying the !
operator.
pub fn not(self) -> <B1 as Not>::Output
[src]
impl Ord for B1
[src]
pub fn cmp(&self, other: &B1) -> 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 PartialEq<B1> for B1
[src]
impl PartialOrd<B1> for B1
[src]
pub fn partial_cmp(&self, other: &B1) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PowerOfTwo for B1
[src]
impl StructuralEq for B1
[src]
impl StructuralPartialEq for B1
[src]
Auto Trait Implementations
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> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,