pub struct ArkScaleRef<'a, T, const U: Usage = WIRE>(pub &'a T);
Tuple Fields§
§0: &'a T
Trait Implementations§
Source§impl<'a, T, const U: Usage> Clone for ArkScaleRef<'a, T, U>
impl<'a, T, const U: Usage> Clone for ArkScaleRef<'a, T, U>
Source§impl<'a, T: CanonicalSerialize, const U: Usage> Encode for ArkScaleRef<'a, T, U>
impl<'a, T: CanonicalSerialize, const U: Usage> Encode for ArkScaleRef<'a, T, U>
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<'a, T, const U: Usage> From<&'a T> for ArkScaleRef<'a, T, U>
impl<'a, T, const U: Usage> From<&'a T> for ArkScaleRef<'a, T, U>
Source§fn from(t: &'a T) -> ArkScaleRef<'a, T, U>
fn from(t: &'a T) -> ArkScaleRef<'a, T, U>
Converts to this type from the input type.
Source§impl<'a, T, const U: Usage> MaxEncodedLen for ArkScaleRef<'a, T, U>where
T: CanonicalSerialize + ArkScaleMaxEncodedLen,
impl<'a, T, const U: Usage> MaxEncodedLen for ArkScaleRef<'a, T, U>where
T: CanonicalSerialize + ArkScaleMaxEncodedLen,
Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
impl<'a, T: Copy, const U: Usage> Copy for ArkScaleRef<'a, T, U>
Auto Trait Implementations§
impl<'a, T, const U: u8> Freeze for ArkScaleRef<'a, T, U>
impl<'a, T, const U: u8> RefUnwindSafe for ArkScaleRef<'a, T, U>where
T: RefUnwindSafe,
impl<'a, T, const U: u8> Send for ArkScaleRef<'a, T, U>where
T: Sync,
impl<'a, T, const U: u8> Sync for ArkScaleRef<'a, T, U>where
T: Sync,
impl<'a, T, const U: u8> Unpin for ArkScaleRef<'a, T, U>
impl<'a, T, const U: u8> UnwindSafe for ArkScaleRef<'a, T, U>where
T: RefUnwindSafe,
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