pub trait Error: Sized + StdError {
// Required method
fn custom<T>(msg: T) -> Self
where T: Display;
}
Expand description
Trait used by Serialize
implementations to generically construct
errors belonging to the Serializer
against which they are
currently running.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.