pub trait Encode {
    // Provided methods
    fn size_hint(&self) -> usize { ... }
    fn encode_to<T>(&self, dest: &mut T)
       where T: Output + ?Sized { ... }
    fn encode(&self) -> Vec<u8, Global>  { ... }
    fn using_encoded<R, F>(&self, f: F) -> R
       where F: FnOnce(&[u8]) -> R { ... }
    fn encoded_size(&self) -> usize { ... }
}
Expand description

Trait that allows zero-copy write of value-references to slices in LE format.

Implementations should override using_encoded for value types and encode_to and size_hint for allocating types. Wrapper types should override all methods.

Provided Methods§

source

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding.

This method is used inside default implementation of encode to avoid re-allocations.

source

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

Convert self to a slice and append it to the destination.

source

fn encode(&self) -> Vec<u8, Global>

Convert self to an owned vector.

source

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.

source

fn encoded_size(&self) -> usize

Calculates the encoded size.

Should be used when the encoded data isn’t required.

Note

This works by using a special Output that only tracks the size. So, there are no allocations inside the output. However, this can not prevent allocations that some types are doing inside their own encoding.

Implementations on Foreign Types§

source§

impl Encode for WasmLevel

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for WasmValuesSet

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for WasmFieldName

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for WasmValue

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for WasmMetadata

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for WasmEntryAttributes

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for WasmFields

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for LinkedList<T, Global>where T: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl<K, V> Encode for BTreeMap<K, V, Global>where K: Encode, V: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl<T> Encode for [T]where T: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl<T> Encode for RangeInclusive<T>where T: Encode,

source§

impl<O, T> Encode for BitVec<T, O>where O: BitOrder, T: BitStore + Encode,

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl<P0, Q0, R0> Encode for (P0, Q0, R0)where P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl Encode for i16

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<Q0, R0> Encode for (Q0, R0)where Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl Encode for u32

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for NonZeroI64

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for f32

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for NonZeroU128

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for u16

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)where I0: Encode, J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl<O, T> Encode for BitSlice<T, O>where O: BitOrder, T: BitStore + Encode,

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl<K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (K0, L0, M0, N0, O0, P0, Q0, R0)where K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl<A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (A0, B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)where A0: Encode, B0: Encode, C0: Encode, D0: Encode, E0: Encode, F0: Encode, G0: Encode, H0: Encode, I0: Encode, J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl Encode for Duration

source§

impl Encode for i8

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for i32

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<R0> Encode for (R0,)where R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for Range<T>where T: Encode,

source§

impl<H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)where H0: Encode, I0: Encode, J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl<L0, M0, N0, O0, P0, Q0, R0> Encode for (L0, M0, N0, O0, P0, Q0, R0)where L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl Encode for u8

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for NonZeroU32

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for u128

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for NonZeroU16

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for ()

source§

fn encode_to<W>(&self, _dest: &mut W)where W: Output + ?Sized,

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

fn encode(&self) -> Vec<u8, Global>

source§

impl<J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (J0, K0, L0, M0, N0, O0, P0, Q0, R0)where J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl<F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)where F0: Encode, G0: Encode, H0: Encode, I0: Encode, J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl Encode for NonZeroI32

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for BTreeSet<T, Global>where T: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl<C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)where C0: Encode, D0: Encode, E0: Encode, F0: Encode, G0: Encode, H0: Encode, I0: Encode, J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl<G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)where G0: Encode, H0: Encode, I0: Encode, J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl Encode for NonZeroU8

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T, const N: usize> Encode for [T; N]where T: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl Encode for NonZeroI128

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for NonZeroI8

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for i64

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for Option<T>where T: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl<N0, O0, P0, Q0, R0> Encode for (N0, O0, P0, Q0, R0)where N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl<D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)where D0: Encode, E0: Encode, F0: Encode, G0: Encode, H0: Encode, I0: Encode, J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl<T> Encode for VecDeque<T, Global>where T: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl Encode for str

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (B0, C0, D0, E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)where B0: Encode, C0: Encode, D0: Encode, E0: Encode, F0: Encode, G0: Encode, H0: Encode, I0: Encode, J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl Encode for i128

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<O, T> Encode for BitBox<T, O>where O: BitOrder, T: BitStore + Encode,

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl Encode for NonZeroU64

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<M0, N0, O0, P0, Q0, R0> Encode for (M0, N0, O0, P0, Q0, R0)where M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl<E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0> Encode for (E0, F0, G0, H0, I0, J0, K0, L0, M0, N0, O0, P0, Q0, R0)where E0: Encode, F0: Encode, G0: Encode, H0: Encode, I0: Encode, J0: Encode, K0: Encode, L0: Encode, M0: Encode, N0: Encode, O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl Encode for f64

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for BinaryHeap<T, Global>where T: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

impl Encode for NonZeroI16

source§

fn size_hint(&self) -> usize

source§

fn encode_to<W>(&self, dest: &mut W)where W: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for u64

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for bool

source§

fn size_hint(&self) -> usize

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<O0, P0, Q0, R0> Encode for (O0, P0, Q0, R0)where O0: Encode, P0: Encode, Q0: Encode, R0: Encode,

source§

fn size_hint(&self) -> usize

source§

fn encode_to<T>(&self, dest: &mut T)where T: Output + ?Sized,

source§

impl Encode for RuntimeMetadataV14

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for RuntimeMetadataDeprecated

source§

fn encode_to<W>(&self, _dest: &mut W)where W: Output + ?Sized,

source§

impl<T> Encode for PalletErrorMetadata<T>where T: Form, <T as Form>::Type: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for SignedExtensionMetadata<T>where T: Form, <T as Form>::String: Encode, <T as Form>::Type: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for RuntimeMetadata

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for StorageEntryModifier

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for ExtrinsicMetadata<T>where T: Form, <T as Form>::Type: Encode, Vec<SignedExtensionMetadata<T>, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for PalletStorageMetadata<T>where T: Form, <T as Form>::String: Encode, Vec<StorageEntryMetadata<T>, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for PalletEventMetadata<T>where T: Form, <T as Form>::Type: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for OpaqueMetadata

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for StorageHasher

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for RuntimeMetadataPrefixed

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for StorageEntryType<T>where T: Form, <T as Form>::Type: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for PalletCallMetadata<T>where T: Form, <T as Form>::Type: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for PalletConstantMetadata<T>where T: Form, <T as Form>::String: Encode, <T as Form>::Type: Encode, Vec<<T as Form>::String, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for StorageEntryMetadata<T>where T: Form, <T as Form>::String: Encode, StorageEntryType<T>: Encode, Vec<<T as Form>::String, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for PalletMetadata<T>where T: Form, <T as Form>::String: Encode, Option<PalletStorageMetadata<T>>: Encode, Option<PalletCallMetadata<T>>: Encode, Option<PalletEventMetadata<T>>: Encode, Vec<PalletConstantMetadata<T>, Global>: Encode, Option<PalletErrorMetadata<T>>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for TypeDefCompact<T>where T: Form, <T as Form>::Type: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for TypeDefBitSequence<T>where T: Form, <T as Form>::Type: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for PortableRegistry

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for TypeDef<T>where T: Form, TypeDefComposite<T>: Encode, TypeDefVariant<T>: Encode, TypeDefSequence<T>: Encode, TypeDefArray<T>: Encode, TypeDefTuple<T>: Encode, TypeDefCompact<T>: Encode, TypeDefBitSequence<T>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for TypeDefArray<T>where T: Form, <T as Form>::Type: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for TypeParameter<T>where T: Form, <T as Form>::String: Encode, Option<<T as Form>::Type>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for Type<T>where T: Form, Path<T>: Encode, Vec<TypeParameter<T>, Global>: Encode, TypeDef<T>: Encode, Vec<<T as Form>::String, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for TypeDefVariant<T>where T: Form, Vec<Variant<T>, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for Field<T>where T: Form, Option<<T as Form>::String>: Encode, <T as Form>::Type: Encode, Vec<<T as Form>::String, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for Variant<T>where T: Form, <T as Form>::String: Encode, Vec<Field<T>, Global>: Encode, Vec<<T as Form>::String, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for TypeDefSequence<T>where T: Form, <T as Form>::Type: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for UntrackedSymbol<T>where PhantomData<fn() -> T>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for TypeDefPrimitive

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for TypeDefComposite<T>where T: Form, Vec<Field<T>, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for TypeDefTuple<T>where T: Form, Vec<<T as Form>::Type, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<T> Encode for Path<T>where T: Form, Vec<<T as Form>::String, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Signature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for CryptoTypeId

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for LogLevel

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for LocalizedSignature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for CryptoTypePublicPair

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for StorageKind

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for HttpError

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for Signature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Public

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for LogLevelFilter

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for Public

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for OpaqueMetadata

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Signature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for DeriveJunction

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for Timestamp

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for OpaqueNetworkState

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for HttpRequestId

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for AccountId32

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for OpaqueMultiaddr

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Public

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for KeyTypeId

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for OpaquePeerId

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Duration

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for HttpRequestStatus

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for Value

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for ReturnValue

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for StorageData

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for ChildTrieParentKeyId

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for StorageKey

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for H768

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for H128

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for U128

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for H384

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for H256

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for H512

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for H160

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for U256

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for U512

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for EcdsaVerifyError

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<T> Encode for Crossing<T>where T: Encode + Decode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for VRFTranscriptValue

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for VRFTranscriptData

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for CompactProof

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for StorageProof

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<B> Encode for BlockAndTimeDeadline<B>where B: BlockNumberProvider, <B as BlockNumberProvider>::BlockNumber: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for UintAuthorityId

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for DispatchError

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for TokenError

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for RuntimeString

source§

fn encode(&self) -> Vec<u8, Global>

source§

impl Encode for OpaqueExtrinsic

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<Xt> Encode for ExtrinsicWrapper<Xt>where Xt: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<Call, Extra> Encode for TestXt<Call, Extra>where Option<(u64, Extra)>: Encode, Call: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for LookupError

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for AnySignature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<Number, Hash> Encode for Header<Number, Hash>where Number: Copy + Into<U256> + TryFrom<U256> + HasCompact, Hash: Hash, <Hash as Hash>::Output: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for TransactionalError

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<AccountId, AccountIndex> Encode for MultiAddress<AccountId, AccountIndex>where AccountId: Encode, AccountIndex: HasCompact,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<Xt> Encode for Block<Xt>where Vec<Xt, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<Block> Encode for BlockId<Block>where Block: Block, <Block as Block>::Hash: Encode, <<Block as Block>::Header as Header>::Number: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for TestSignature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<Info> Encode for DispatchErrorWithPostInfo<Info>where Info: Eq + PartialEq<Info> + Clone + Copy + Encode + Decode + Printable,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<'a> Encode for DigestItemRef<'a>

source§

fn encode(&self) -> Vec<u8, Global>

source§

impl Encode for Digest

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for ModuleError

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for BadOrigin

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<Block> Encode for SignedBlock<Block>where Block: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for Era

source§

fn encode_to<T>(&self, output: &mut T)where T: Output + ?Sized,

source§

impl Encode for ModuleError

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for Justifications

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<Header, Extrinsic> Encode for Block<Header, Extrinsic>where Extrinsic: MaybeSerialize, Header: Encode, Vec<Extrinsic, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for MultiSignature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl<Address, Call, Signature, Extra> Encode for UncheckedExtrinsic<Address, Call, Signature, Extra>where Address: Encode, Signature: Encode, Call: Encode, Extra: SignedExtension,

source§

fn encode(&self) -> Vec<u8, Global>

source§

impl<Call, Extra> Encode for SignedPayload<Call, Extra>where Call: Encode, Extra: SignedExtension,

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

Get an encoded version of this payload.

Payloads longer than 256 bytes are going to be blake2_256-hashed.

source§

impl Encode for Time

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for DigestItem

source§

fn encode(&self) -> Vec<u8, Global>

source§

impl Encode for MultiSigner

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for ArithmeticError

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for Permill

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for FixedU128

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Perbill

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for FixedI64

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Percent

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for BigUint

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for FixedI128

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Perquintill

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for FixedU64

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for PerU16

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Public

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Signature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Signature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Public

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Signature

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl Encode for Public

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

fn encode(&self) -> Vec<u8, Global>

source§

fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,

source§

impl<Reporter, Offender> Encode for OffenceDetails<Reporter, Offender>where Offender: Encode, Vec<Reporter, Global>: Encode,

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for DisableStrategy

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

source§

impl Encode for RuntimeVersion

source§

fn encode_to<__CodecOutputEdqy>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )where __CodecOutputEdqy: Output + ?Sized,

Implementors§

source§

impl Encode for Never

source§

impl Encode for Void

source§

impl Encode for frame_support::pallet_prelude::DispatchError

source§

impl Encode for InvalidTransaction

source§

impl Encode for TransactionSource

source§

impl Encode for TransactionValidityError

source§

impl Encode for UnknownTransaction

source§

impl Encode for ChildInfo

source§

impl Encode for KillStorageResult

source§

impl Encode for StateVersion

source§

impl Encode for ProcessMessageError

source§

impl Encode for frame_support::traits::schedule::LookupError

source§

impl Encode for BalanceStatus

source§

impl Encode for DispatchClass

source§

impl Encode for Pays

source§

impl Encode for OptionBool

source§

impl Encode for CheckInherentsResult

source§

impl Encode for InherentData

source§

impl Encode for ValidTransaction

source§

impl Encode for Weight

source§

impl Encode for MultiRemovalResults

source§

impl Encode for PalletId

source§

impl Encode for CrateVersion

source§

impl Encode for StorageInfo

source§

impl Encode for StorageVersion

source§

impl Encode for TrackedStorageKey

source§

impl Encode for WithdrawReasons

source§

impl Encode for OldWeight

source§

impl Encode for RuntimeDbWeight

source§

impl Encode for DispatchInfo

source§

impl Encode for PostDispatchInfo

source§

impl<'a> Encode for CompactRef<'a, u8>

source§

impl<'a> Encode for CompactRef<'a, u16>

source§

impl<'a> Encode for CompactRef<'a, u32>

source§

impl<'a> Encode for CompactRef<'a, u64>

source§

impl<'a> Encode for CompactRef<'a, u128>

source§

impl<'a> Encode for CompactRef<'a, ()>

source§

impl<'a, T> Encode for CompactRef<'a, T>where T: CompactAs, CompactRef<'b, <T as CompactAs>::As>: for<'b> Encode,

source§

impl<'a, T, S> Encode for BoundedSlice<'a, T, S>where T: Encode, &'a [T]: Encode, PhantomData<S>: Encode,

source§

impl<AccountId> Encode for AttributeNamespace<AccountId>where AccountId: Encode,

source§

impl<AccountId> Encode for RawOrigin<AccountId>where AccountId: Encode,

source§

impl<Balance> Encode for WeightToFeeCoefficient<Balance>where Balance: Encode,

source§

impl<BlockNumber> Encode for DispatchTime<BlockNumber>where BlockNumber: Encode,

source§

impl<E> Encode for MakeFatalError<E>where E: Encode,

source§

impl<K, V, S> Encode for BoundedBTreeMap<K, V, S>where BTreeMap<K, V, Global>: Encode, PhantomData<S>: Encode,

source§

impl<T> Encode for Bounded<T>where PhantomData<T>: Encode,

source§

impl<T> Encode for Compact<T>where CompactRef<'a, T>: for<'a> Encode,

source§

impl<T> Encode for PhantomData<T>

source§

impl<T> Encode for PerDispatchClass<T>where T: Encode,

source§

impl<T, E> Encode for Result<T, E>where T: Encode, E: Encode,

source§

impl<T, Hash> Encode for MaybeHashed<T, Hash>where T: Encode, Hash: Encode,

source§

impl<T, S> Encode for BoundedBTreeSet<T, S>where BTreeSet<T, Global>: Encode, PhantomData<S>: Encode,

source§

impl<T, S> Encode for BoundedVec<T, S>where Vec<T, Global>: Encode, PhantomData<S>: Encode,

source§

impl<T, S> Encode for WeakBoundedVec<T, S>where Vec<T, Global>: Encode, PhantomData<S>: Encode,

source§

impl<T, X> Encode for Xwhere T: Encode + ?Sized, X: WrapperTypeEncode<Target = T>,

source§

impl<T: Encode> Encode for WrapperKeepOpaque<T>

source§

impl<T: Encode> Encode for WrapperOpaque<T>