Trait codee::HybridEncoder

source ·
pub trait HybridEncoder<T, E> {
    type Error;

    // Provided methods
    fn encode_str(_val: &T) -> Result<String, HybridCoderError<Self::Error>> { ... }
    fn encode_bin(_val: &T) -> Result<Vec<u8>, HybridCoderError<Self::Error>> { ... }
}

Required Associated Types§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, E> HybridEncoder<T, String> for E
where E: Encoder<T, Encoded = String>,

§

type Error = <E as Encoder<T>>::Error

source§

impl<T, E> HybridEncoder<T, Vec<u8>> for E
where E: Encoder<T, Encoded = Vec<u8>>,

§

type Error = <E as Encoder<T>>::Error