[][src]Trait serialize::serialize::UseSpecializedEncodable

pub trait UseSpecializedEncodable {
    fn default_encode<E: Encoder>(&self, _: &mut E) -> Result<(), E::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 Encodable implementation which goes through SpecializedEncoder.

Provided methods

fn default_encode<E: Encoder>(&self, _: &mut E) -> Result<(), E::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<'a, T: ?Sized + Encodable> UseSpecializedEncodable for &'a T[src]

impl<T: ?Sized + Encodable> UseSpecializedEncodable for Box<T>[src]

Loading content...

Implementors

Loading content...