Struct generic_arrayvec::typenum::consts::B1 [−]
pub struct B1;
The type-level bit 1.
Methods
impl B1
impl B1Trait Implementations
impl Bit for B1
impl Bit for B1impl NonZero for B1
impl NonZero for B1impl Hash for B1
impl Hash for B1fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl PartialOrd<B1> for B1
impl PartialOrd<B1> for B1fn partial_cmp(&self, other: &B1) -> Option<Ordering>
fn partial_cmp(&self, other: &B1) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl BitAnd<B1> for B1
impl BitAnd<B1> for B1And with 1 ( 1 & 1 = 1)
type Output = B1
The resulting type after applying the & operator.
fn bitand(self, B1) -> <B1 as BitAnd<B1>>::Output
fn bitand(self, B1) -> <B1 as BitAnd<B1>>::OutputPerforms the & operation.
impl BitAnd<B0> for B1
impl BitAnd<B0> for B1And with 1 ( 1 & 0 = 0)
type Output = B0
The resulting type after applying the & operator.
fn bitand(self, B0) -> <B1 as BitAnd<B0>>::Output
fn bitand(self, B0) -> <B1 as BitAnd<B0>>::OutputPerforms the & operation.
impl Default for B1
impl Default for B1impl Max<B1> for B1
impl Max<B1> for B1type Output = B1
The type of the maximum of Self and Rhs
fn max(self, B1) -> B1
fn max(self, B1) -> B1Method returning the maximum
impl Max<B0> for B1
impl Max<B0> for B1type Output = B1
The type of the maximum of Self and Rhs
fn max(self, B0) -> B1
fn max(self, B0) -> B1Method returning the maximum
impl Max<B1> for B0
impl Max<B1> for B0type Output = B1
The type of the maximum of Self and Rhs
fn max(self, rhs: B1) -> B1
fn max(self, rhs: B1) -> B1Method returning the maximum
impl Min<B1> for B0
impl Min<B1> for B0type Output = B0
The type of the minimum of Self and Rhs
fn min(self, B1) -> B0
fn min(self, B1) -> B0Method returning the minimum
impl Min<B0> for B1
impl Min<B0> for B1type Output = B0
The type of the minimum of Self and Rhs
fn min(self, rhs: B0) -> B0
fn min(self, rhs: B0) -> B0Method returning the minimum
impl Min<B1> for B1
impl Min<B1> for B1type Output = B1
The type of the minimum of Self and Rhs
fn min(self, B1) -> B1
fn min(self, B1) -> B1Method returning the minimum
impl Shl<B1> for UTerm
impl Shl<B1> for UTermShifting UTerm by a 1 bit: UTerm << B1 = UTerm
type Output = UTerm
The resulting type after applying the << operator.
fn shl(self, B1) -> <UTerm as Shl<B1>>::Output
fn shl(self, B1) -> <UTerm as Shl<B1>>::OutputPerforms the << operation.
impl<U, B> Shl<B1> for UInt<U, B> where
B: Bit,
U: Unsigned,
impl<U, B> Shl<B1> for UInt<U, B> where
B: Bit,
U: Unsigned, Shifting left a UInt by a one bit: UInt<U, B> << B1 = UInt<UInt<U, B>, B0>
type Output = UInt<UInt<U, B>, B0>
The resulting type after applying the << operator.
fn shl(self, B1) -> <UInt<U, B> as Shl<B1>>::Output
fn shl(self, B1) -> <UInt<U, B> as Shl<B1>>::OutputPerforms the << operation.
impl Ord for B1
impl Ord for B1fn cmp(&self, other: &B1) -> Ordering
fn cmp(&self, other: &B1) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Mul<B1> for UTerm
impl Mul<B1> for UTermUTerm * B1 = UTerm
type Output = UTerm
The resulting type after applying the * operator.
fn mul(self, B1) -> <UTerm as Mul<B1>>::Output
fn mul(self, B1) -> <UTerm as Mul<B1>>::OutputPerforms the * operation.
impl<U, B> Mul<B1> for UInt<U, B> where
B: Bit,
U: Unsigned,
impl<U, B> Mul<B1> for UInt<U, B> where
B: Bit,
U: Unsigned, UInt * B1 = UInt
type Output = UInt<U, B>
The resulting type after applying the * operator.
fn mul(self, B1) -> <UInt<U, B> as Mul<B1>>::Output
fn mul(self, B1) -> <UInt<U, B> as Mul<B1>>::OutputPerforms the * operation.
impl PowerOfTwo for B1
impl PowerOfTwo for B1impl Debug for B1
impl Debug for B1fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<U, B> Shr<B1> for UInt<U, B> where
B: Bit,
U: Unsigned,
impl<U, B> Shr<B1> for UInt<U, B> where
B: Bit,
U: Unsigned, Shifting right a UInt by a 1 bit: UInt<U, B> >> B1 = U
type Output = U
The resulting type after applying the >> operator.
fn shr(self, B1) -> <UInt<U, B> as Shr<B1>>::Output
fn shr(self, B1) -> <UInt<U, B> as Shr<B1>>::OutputPerforms the >> operation.
impl Shr<B1> for UTerm
impl Shr<B1> for UTermShifting right UTerm by a 1 bit: UTerm >> B1 = UTerm
type Output = UTerm
The resulting type after applying the >> operator.
fn shr(self, B1) -> <UTerm as Shr<B1>>::Output
fn shr(self, B1) -> <UTerm as Shr<B1>>::OutputPerforms the >> operation.
impl Clone for B1
impl Clone for B1fn clone(&self) -> B1
fn clone(&self) -> B1Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<U, B> Sub<B1> for UInt<UInt<U, B>, B1> where
B: Bit,
U: Unsigned,
impl<U, B> Sub<B1> for UInt<UInt<U, B>, B1> where
B: Bit,
U: Unsigned, UInt<U, B1> - B1 = UInt<U, B0>
type Output = UInt<UInt<U, B>, B0>
The resulting type after applying the - operator.
fn sub(self, B1) -> <UInt<UInt<U, B>, B1> as Sub<B1>>::Output
fn sub(self, B1) -> <UInt<UInt<U, B>, B1> as Sub<B1>>::OutputPerforms the - operation.
impl<U> Sub<B1> for UInt<U, B0> where
U: Unsigned + Sub<B1>,
<U as Sub<B1>>::Output: Unsigned,
impl<U> Sub<B1> for UInt<U, B0> where
U: Unsigned + Sub<B1>,
<U as Sub<B1>>::Output: Unsigned, UInt<U, B0> - B1 = UInt<U - B1, B1>
type Output = UInt<<U as Sub<B1>>::Output, B1>
The resulting type after applying the - operator.
fn sub(self, B1) -> <UInt<U, B0> as Sub<B1>>::Output
fn sub(self, B1) -> <UInt<U, B0> as Sub<B1>>::OutputPerforms the - operation.
impl Sub<B1> for UInt<UTerm, B1>
impl Sub<B1> for UInt<UTerm, B1>UInt<UTerm, B1> - B1 = UTerm
type Output = UTerm
The resulting type after applying the - operator.
fn sub(self, B1) -> <UInt<UTerm, B1> as Sub<B1>>::Output
fn sub(self, B1) -> <UInt<UTerm, B1> as Sub<B1>>::OutputPerforms the - operation.
impl Not for B1
impl Not for B1Not of 1 (!1 = 0)
type Output = B0
The resulting type after applying the ! operator.
fn not(self) -> <B1 as Not>::Output
fn not(self) -> <B1 as Not>::OutputPerforms the unary ! operation.
impl PartialEq<B1> for B1
impl PartialEq<B1> for B1fn eq(&self, other: &B1) -> bool
fn eq(&self, other: &B1) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Cmp<B0> for B1
impl Cmp<B0> for B1type Output = Greater
The result of the comparison. It should only ever be one of Greater, Less, or Equal.
impl Cmp<B1> for B0
impl Cmp<B1> for B0type Output = Less
The result of the comparison. It should only ever be one of Greater, Less, or Equal.
impl Cmp<B1> for B1
impl Cmp<B1> for B1type Output = Equal
The result of the comparison. It should only ever be one of Greater, Less, or Equal.
impl Eq for B1
impl Eq for B1impl Copy for B1
impl Copy for B1impl BitXor<B1> for B1
impl BitXor<B1> for B1Xor between 1 and 1 ( 1 ^ 1 = 0)
type Output = B0
The resulting type after applying the ^ operator.
fn bitxor(self, B1) -> <B1 as BitXor<B1>>::Output
fn bitxor(self, B1) -> <B1 as BitXor<B1>>::OutputPerforms the ^ operation.
impl BitXor<B0> for B1
impl BitXor<B0> for B1Xor between 1 and 0 ( 1 ^ 0 = 1)
type Output = B1
The resulting type after applying the ^ operator.
fn bitxor(self, B0) -> <B1 as BitXor<B0>>::Output
fn bitxor(self, B0) -> <B1 as BitXor<B0>>::OutputPerforms the ^ operation.
impl BitXor<B1> for B0
impl BitXor<B1> for B0Xor between 0 and 1 ( 0 ^ 1 = 1)
type Output = B1
The resulting type after applying the ^ operator.
fn bitxor(self, B1) -> <B0 as BitXor<B1>>::Output
fn bitxor(self, B1) -> <B0 as BitXor<B1>>::OutputPerforms the ^ operation.
impl BitOr<B1> for B0
impl BitOr<B1> for B0Or with 0 ( 0 | 1 = 1)
type Output = B1
The resulting type after applying the | operator.
fn bitor(self, B1) -> <B0 as BitOr<B1>>::Output
fn bitor(self, B1) -> <B0 as BitOr<B1>>::OutputPerforms the | operation.
impl<Rhs> BitOr<Rhs> for B1 where
Rhs: Bit,
impl<Rhs> BitOr<Rhs> for B1 where
Rhs: Bit, Or with 1 ( 1 | B = 1)
type Output = B1
The resulting type after applying the | operator.
fn bitor(self, Rhs) -> <B1 as BitOr<Rhs>>::Output
fn bitor(self, Rhs) -> <B1 as BitOr<Rhs>>::OutputPerforms the | operation.
impl<U> Add<B1> for UInt<U, B1> where
U: Unsigned + Add<B1>,
<U as Add<B1>>::Output: Unsigned,
impl<U> Add<B1> for UInt<U, B1> where
U: Unsigned + Add<B1>,
<U as Add<B1>>::Output: Unsigned, UInt<U, B1> + B1 = UInt<U + B1, B0>
type Output = UInt<<U as Add<B1>>::Output, B0>
The resulting type after applying the + operator.
fn add(self, B1) -> <UInt<U, B1> as Add<B1>>::Output
fn add(self, B1) -> <UInt<U, B1> as Add<B1>>::OutputPerforms the + operation.
impl<U> Add<B1> for UInt<U, B0> where
U: Unsigned,
impl<U> Add<B1> for UInt<U, B0> where
U: Unsigned, UInt<U, B0> + B1 = UInt<U + B1>
type Output = UInt<U, B1>
The resulting type after applying the + operator.
fn add(self, B1) -> <UInt<U, B0> as Add<B1>>::Output
fn add(self, B1) -> <UInt<U, B0> as Add<B1>>::OutputPerforms the + operation.
impl Add<B1> for UTerm
impl Add<B1> for UTermUTerm + B1 = UInt<UTerm, B1>