Struct sc_network::multiaddr::multihash::typenum::bit::B0 [−]
pub struct B0;
Expand description
The type-level bit 0.
Implementations
Trait Implementations
U + B0 = U
UTerm + B0 = UTerm
And with 1 ( 1 & 0 = 0)
And with 0 ( 0 & B = 0)
Or with 0 ( 0 | 0 = 0)
Or with 0 ( 0 | 1 = 1)
Xor between 0 and 0 ( 0 ^ 0 = 0)
Xor between 1 and 0 ( 1 ^ 0 = 1)
Xor between 0 and 1 ( 0 ^ 1 = 1)
UTerm * B0 = UTerm
UInt * B0 = UTerm
Not of 0 (!0 = 1)
impl PartialOrd<B0> for B0
impl PartialOrd<B0> for B0
pub fn partial_cmp(&self, other: &B0) -> Option<Ordering>
pub fn partial_cmp(&self, other: &B0) -> 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 UTerm
by a 0 bit: UTerm << B0 = UTerm
Shifting left any unsigned by a zero bit: U << B0 = U
Shifting right any unsigned by a zero bit: U >> B0 = U
Shifting right UTerm
by a 0 bit: UTerm >> B0 = UTerm
UTerm - B0 = Term
UInt - B0 = UInt
impl StructuralEq for B0
impl StructuralPartialEq for B0
Auto 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) -> V
Attaches 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,