#[repr(transparent)]pub struct ArkScaleLen<T, const L: usize>(pub T);
Expand description
Arkworks type wrapped for serialization by Scale
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: CanonicalDeserialize, const L: usize> ArkScaleMaxEncodedLen for ArkScaleLen<T, L>
impl<T: CanonicalDeserialize, const L: usize> ArkScaleMaxEncodedLen for ArkScaleLen<T, L>
Source§fn max_encoded_len(_: Compress) -> usize
fn max_encoded_len(_: Compress) -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
Source§impl<T: Clone, const L: usize> Clone for ArkScaleLen<T, L>
impl<T: Clone, const L: usize> Clone for ArkScaleLen<T, L>
Source§fn clone(&self) -> ArkScaleLen<T, L>
fn clone(&self) -> ArkScaleLen<T, L>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: CanonicalDeserialize, const L: usize> Decode for ArkScaleLen<T, L>
impl<T: CanonicalDeserialize, const L: usize> Decode for ArkScaleLen<T, L>
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<T: CanonicalSerialize, const L: usize> Encode for ArkScaleLen<T, L>
impl<T: CanonicalSerialize, const L: usize> Encode for ArkScaleLen<T, L>
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<O: Output + ?Sized>(&self, dest: &mut O)
fn encode_to<O: Output + ?Sized>(&self, dest: &mut O)
Convert self to a slice and append it to the destination.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§impl<T, const L: usize> From<T> for ArkScaleLen<T, L>
impl<T, const L: usize> From<T> for ArkScaleLen<T, L>
Source§fn from(t: T) -> ArkScaleLen<T, L>
fn from(t: T) -> ArkScaleLen<T, L>
Converts to this type from the input type.
impl<T: CanonicalSerialize, const L: usize> EncodeLike for ArkScaleLen<T, L>
impl<T: Eq, const L: usize> Eq for ArkScaleLen<T, L>
impl<T, const L: usize> StructuralPartialEq for ArkScaleLen<T, L>
Auto Trait Implementations§
impl<T, const L: usize> Freeze for ArkScaleLen<T, L>where
T: Freeze,
impl<T, const L: usize> RefUnwindSafe for ArkScaleLen<T, L>where
T: RefUnwindSafe,
impl<T, const L: usize> Send for ArkScaleLen<T, L>where
T: Send,
impl<T, const L: usize> Sync for ArkScaleLen<T, L>where
T: Sync,
impl<T, const L: usize> Unpin for ArkScaleLen<T, L>where
T: Unpin,
impl<T, const L: usize> UnwindSafe for ArkScaleLen<T, L>where
T: UnwindSafe,
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