[][src]Trait serialize::serialize::SpecializedEncoder

pub trait SpecializedEncoder<T: ?Sized + UseSpecializedEncodable>: Encoder {
    fn specialized_encode(&mut self, value: &T) -> Result<(), Self::Error>;
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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

fn specialized_encode(&mut self, value: &T) -> Result<(), Self::Error>

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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

Loading content...

Implementors

impl<E: Encoder, T: ?Sized + UseSpecializedEncodable> SpecializedEncoder<T> for E[src]

Loading content...