Struct B1
pub struct B1;
The type-level bit 1.
Implementations
impl B1
fn new() -> B1Instantiates a singleton representing this bit.
Trait Implementations
impl Bit for B1
const U8: u8 = 1;const BOOL: bool = true;fn new() -> Selffn to_u8() -> u8fn to_bool() -> bool
impl BitAnd for B1
type Output = B1;fn bitand(self, B1) -> Self::Output
impl BitAnd<B0> for B1
type Output = B0;fn bitand(self, B0) -> Self::Output
impl BitXor for B1
type Output = B0;fn bitxor(self, B1) -> Self::Output
impl BitXor<B0> for B1
type Output = B1;fn bitxor(self, B0) -> Self::Output
impl Clone for B1
fn clone(&self) -> Self
impl Cmp for B1
type Output = Equal;
impl Cmp<B0> for B1
type Output = Greater;
impl Copy for B1
impl Debug for B1
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for B1
fn default() -> Self
impl Eq for B1
impl Hash for B1
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Max for B1
type Output = B1;fn max(self, B1) -> B1
impl Max<B0> for B1
type Output = B1;fn max(self, B0) -> B1
impl Min for B1
type Output = B1;fn min(self, B1) -> B1
impl Min<B0> for B1
type Output = B0;fn min(self, rhs: B0) -> B0
impl NonZero for B1
impl Not for B1
type Output = B0;fn not(self) -> Self::Output
impl Ord for B1
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for B1
fn eq(&self, other: &Self) -> bool
impl PartialOrd for B1
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl PowerOfTwo for B1
impl StructuralPartialEq for B1
impl<Rhs: Bit> BitOr<Rhs> for B1
type Output = B1;fn bitor(self, Rhs) -> Self::Output