Trait parity_scale_codec::EncodeAsRef

source ·
pub trait EncodeAsRef<'a, T: 'a> {
    type RefType: Encode + From<&'a T>;
}
Expand description

Something that can be encoded as a reference.

Required Associated Types§

source

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

The reference type that is used for encoding.

Implementors§

source§

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

§

type RefType = CompactRef<'a, T>