Trait codee::HybridDecoder

source ·
pub trait HybridDecoder<T, E: ?Sized> {
    type Error;

    // Provided methods
    fn decode_str(_val: &str) -> Result<T, HybridCoderError<Self::Error>> { ... }
    fn decode_bin(_val: &[u8]) -> Result<T, HybridCoderError<Self::Error>> { ... }
}

Required Associated Types§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, D> HybridDecoder<T, str> for D
where D: Decoder<T, Encoded = str>,

§

type Error = <D as Decoder<T>>::Error

source§

impl<T, D> HybridDecoder<T, [u8]> for D
where D: Decoder<T, Encoded = [u8]>,

§

type Error = <D as Decoder<T>>::Error