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§

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

The reference type that is used for encoding.

Implementors§

§

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

§

type RefType = CompactRef<'a, T>