Struct sc_network::multiaddr::multihash::typenum::B1 [−]
pub struct B1;
Expand description
The type-level bit 1.
Implementations
Trait Implementations
UInt<U, B1> + B1 = UInt<U + B1, B0>
UTerm + B1 = UInt<UTerm, B1>
UInt<U, B0> + B1 = UInt<U + B1>
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)
UInt * B1 = UInt
UTerm * B1 = UTerm
Not of 1 (!1 = 0)
impl PartialOrd<B1> for B1
impl PartialOrd<B1> for B1pub fn partial_cmp(&self, other: &B1) -> Option<Ordering>
pub fn partial_cmp(&self, other: &B1) -> Option<Ordering>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 left a UInt by a one bit: UInt<U, B> << B1 = UInt<UInt<U, B>, B0>
Shifting UTerm by a 1 bit: UTerm << B1 = UTerm
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, B0> - B1 = UInt<U - B1, B1>
UInt<U, B1> - B1 = UInt<U, B0>
UInt<UTerm, B1> - B1 = UTerm
impl PowerOfTwo for B1impl StructuralEq for B1impl StructuralPartialEq for B1Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash, impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any, Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
pub fn vzip(self) -> VAttaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
impl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeDebug for T where
T: Debug,