[][src]Trait serialize::serialize::SpecializedDecoder

pub trait SpecializedDecoder<T: UseSpecializedDecodable>: Decoder {
    fn specialized_decode(&mut self) -> Result<T, 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 decoders, with T being the type you want to decode (employing UseSpecializedDecodable), using a strategy specific to the decoder.

Required methods

fn specialized_decode(&mut self) -> Result<T, 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.

Decode a value in a manner specific to this decoder state.

Loading content...

Implementors

impl<D: Decoder, T: UseSpecializedDecodable> SpecializedDecoder<T> for D[src]

Loading content...