Trait parity_scale_codec::EncodeAsRef[][src]

pub trait EncodeAsRef<'a, 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...

Implementors

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

type RefType = CompactRef<'a, T>

Loading content...