[][src]Trait serialize::serialize::SpecializationError

pub trait SpecializationError {
    fn not_found<S, T: ?Sized>(
        trait_name: &'static str,
        method_name: &'static str
    ) -> Self; }
⚙️ 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 {Encodable,Decodable}::Error types to override the default panic behavior for missing specializations.

Required methods

fn not_found<S, T: ?Sized>(
    trait_name: &'static str,
    method_name: &'static str
) -> Self

⚙️ 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.

Creates an error for a missing method specialization. Defaults to panicking with type, trait & method names. S is the encoder/decoder state type, T is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden.

Loading content...

Implementors

impl<E> SpecializationError for E[src]

Loading content...