[][src]Trait serialize::serialize::UseSpecializedDecodable

pub trait UseSpecializedDecodable: Sized {
    fn default_decode<D: Decoder>(_: &mut D) -> Result<Self, D::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 your type to get an Decodable implementation which goes through SpecializedDecoder.

Provided methods

fn default_decode<D: Decoder>(_: &mut D) -> Result<Self, D::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.

Defaults to returning an error (see SpecializationError).

Loading content...

Implementations on Foreign Types

impl<T: Decodable> UseSpecializedDecodable for Box<T>[src]

impl<'a, T: Decodable> UseSpecializedDecodable for &'a T[src]

impl<'a, T: Decodable> UseSpecializedDecodable for &'a [T][src]

Loading content...

Implementors

Loading content...