Struct typenum::bit::B1 [−][src]
pub struct B1;
Expand description
The type-level bit 1.
Implementations
Trait Implementations
UTerm + B1 = UInt<UTerm, B1>
UInt<U, B0> + B1 = UInt<U + B1>
UInt<U, B1> + B1 = UInt<U + B1, B0>
And with 1 ( 1 & 0 = 0)
And with 1 ( 1 & 1 = 1)
Or with 0 ( 0 | 1 = 1)
Or with 1 ( 1 | B = 1)
Xor between 1 and 0 ( 1 ^ 0 = 1)
Xor between 0 and 1 ( 0 ^ 1 = 1)
Xor between 1 and 1 ( 1 ^ 1 = 0)
UTerm * B1 = UTerm
UInt * B1 = UInt
Not of 1 (!1 = 0)
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Shifting UTerm
by a 1 bit: UTerm << B1 = UTerm
Shifting left a UInt
by a one bit: UInt<U, B> << B1 = UInt<UInt<U, B>, B0>
Shifting right UTerm
by a 1 bit: UTerm >> B1 = UTerm
Shifting right a UInt
by a 1 bit: UInt<U, B> >> B1 = U
UInt<U, B1> - B1 = UInt<U, B0>
UInt<UTerm, B1> - B1 = UTerm
UInt<U, B0> - B1 = UInt<U - B1, B1>