pub trait EncodeAsRef<'a, T>where
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> EncodeAsRef<'a, T> for Compact<T>where
T: 'a,
CompactRef<'a, T>: Encode + From<&'a T>,

§

type RefType = CompactRef<'a, T>