Trait serialize::SpecializedEncoder[][src]

pub trait SpecializedEncoder<T: ?Sized + UseSpecializedEncodable>: Encoder {
    fn specialized_encode(&mut self, value: &T) -> Result<(), Self::Error>;
}

Implement this trait on encoders, with T being the type you want to encode (employing UseSpecializedEncodable), using a strategy specific to the encoder.

Required Methods

Encode the value in a manner specific to this encoder state.

Implementors