Trait frame_support::dispatch::EncodeAsRef[][src]

pub trait EncodeAsRef<'a, T> where
    T: 'a, 
{ type RefType: Encode + From<&'a T>; }

Something that can be encoded as a reference.

Associated Types

type RefType: Encode + From<&'a T>[src]

The reference type that is used for encoding.

Loading content...

Implementations on Foreign Types

impl<'a, T> EncodeAsRef<'a, T> for Compact<T> where
    T: 'a,
    CompactRef<'a, T>: Encode,
    CompactRef<'a, T>: From<&'a T>, 
[src]

type RefType = CompactRef<'a, T>

Loading content...

Implementors

Loading content...