Struct sc_network::multiaddr::multihash::typenum::TArr [−]
pub struct TArr<V, A> { /* fields omitted */ }Expand description
TArr is a type that acts as an array of types. It is defined similarly to UInt, only its
values can be more than bits, and it is designed to act as an array. So you can only add two if
they have the same number of elements, for example.
This array is only really designed to contain Integer types. If you use it with others, you
may find it lacking functionality.
Trait Implementations
Size of a TypeArray
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
A: PartialDiv<Rhs>,
V: PartialDiv<Rhs>,
Rhs: Copy,
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
A: PartialDiv<Rhs>,
V: PartialDiv<Rhs>,
Rhs: Copy, type Output = TArr<<V as PartialDiv<Rhs>>::Output, <A as PartialDiv<Rhs>>::Output>
type Output = TArr<<V as PartialDiv<Rhs>>::Output, <A as PartialDiv<Rhs>>::Output>The type of the result of the division
pub fn partial_div(self, rhs: Rhs) -> <TArr<V, A> as PartialDiv<Rhs>>::Output
pub fn partial_div(self, rhs: Rhs) -> <TArr<V, A> as PartialDiv<Rhs>>::OutputMethod for performing the division
impl<V, A> PartialOrd<TArr<V, A>> for TArr<V, A> where
A: PartialOrd<A>,
V: PartialOrd<V>,
impl<V, A> PartialOrd<TArr<V, A>> for TArr<V, A> where
A: PartialOrd<A>,
V: PartialOrd<V>, pub fn partial_cmp(&self, other: &TArr<V, A>) -> Option<Ordering>
pub fn partial_cmp(&self, other: &TArr<V, A>) -> 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
impl<V, A> StructuralEq for TArr<V, A>impl<V, A> StructuralPartialEq for TArr<V, A>Auto Trait Implementations
impl<V, A> RefUnwindSafe for TArr<V, A> where
A: RefUnwindSafe,
V: RefUnwindSafe, impl<V, A> UnwindSafe for TArr<V, A> where
A: UnwindSafe,
V: UnwindSafe, 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,