pub trait Convert<T> {
// Required methods
fn de<E>(self) -> Result<T, E>
where E: Error,
Self: Sized;
fn ser<E>(self) -> Result<T, E>
where E: Error,
Self: Sized;
fn restore(self) -> Option<T>
where Self: Sized;
fn context<C>(self, context: C) -> Result<T>
where C: Display + Send + Sync + 'static;
fn with_context<C, F>(self, f: F) -> Result<T>
where C: Display + Send + Sync + 'static,
F: FnOnce() -> C;
}Required Methods§
fn de<E>(self) -> Result<T, E>
fn ser<E>(self) -> Result<T, E>
fn restore(self) -> Option<T>where
Self: Sized,
fn context<C>(self, context: C) -> Result<T>
fn with_context<C, F>(self, f: F) -> Result<T>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".