Trait ser_write_json::ser::ByteEncoder

source ·
pub trait ByteEncoder: Sized {
    // Required method
    fn serialize_bytes<'a, W: SerWrite>(
        ser: &'a mut Serializer<W, Self>,
        v: &[u8]
    ) -> Result<(), W::Error>
       where &'a mut Serializer<W, Self>: Serializer<Ok = (), Error = Error<W::Error>>;
}
Expand description

Determine how arrays of bytes are serialized.

Required Methods§

source

fn serialize_bytes<'a, W: SerWrite>( ser: &'a mut Serializer<W, Self>, v: &[u8] ) -> Result<(), W::Error>
where &'a mut Serializer<W, Self>: Serializer<Ok = (), Error = Error<W::Error>>,

Object Safety§

This trait is not object safe.

Implementors§