Struct ruint::support::scale::CompactUint
source · pub struct CompactUint<const BITS: usize, const LIMBS: usize>(pub Uint<BITS, LIMBS>);
Available on crate feature
parity-scale-codec
only.Tuple Fields§
§0: Uint<BITS, LIMBS>
Trait Implementations§
source§impl<const BITS: usize, const LIMBS: usize> Decode for CompactUint<BITS, LIMBS>
impl<const BITS: usize, const LIMBS: usize> Decode for CompactUint<BITS, LIMBS>
source§fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
Attempt to deserialise the value from input.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl<'a, const BITS: usize, const LIMBS: usize> EncodeAsRef<'a, Uint<BITS, LIMBS>> for CompactUint<BITS, LIMBS>
impl<'a, const BITS: usize, const LIMBS: usize> EncodeAsRef<'a, Uint<BITS, LIMBS>> for CompactUint<BITS, LIMBS>
§type RefType = CompactRefUint<'a, BITS, LIMBS>
type RefType = CompactRefUint<'a, BITS, LIMBS>
The reference type that is used for encoding.
source§impl<const BITS: usize, const LIMBS: usize> From<Compact<CompactUint<BITS, LIMBS>>> for CompactUint<BITS, LIMBS>
impl<const BITS: usize, const LIMBS: usize> From<Compact<CompactUint<BITS, LIMBS>>> for CompactUint<BITS, LIMBS>
Auto Trait Implementations§
impl<const BITS: usize, const LIMBS: usize> Freeze for CompactUint<BITS, LIMBS>
impl<const BITS: usize, const LIMBS: usize> RefUnwindSafe for CompactUint<BITS, LIMBS>
impl<const BITS: usize, const LIMBS: usize> Send for CompactUint<BITS, LIMBS>
impl<const BITS: usize, const LIMBS: usize> Sync for CompactUint<BITS, LIMBS>
impl<const BITS: usize, const LIMBS: usize> Unpin for CompactUint<BITS, LIMBS>
impl<const BITS: usize, const LIMBS: usize> UnwindSafe for CompactUint<BITS, LIMBS>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more