Trait Convert

Source
pub trait Convert<T> {
    // Required method
    fn convert(_: T) -> Self;
}

Required Methods§

Source

fn convert(_: T) -> Self

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.

Implementors§

Source§

impl<F, E> Convert<ErrorKind<F>> for ErrorKind<E>
where E: From<F>,

Source§

impl<I, H, F, E> Convert<Err<I, F>> for Err<H, E>
where H: From<I>, E: From<F>,

Source§

impl<I, H, F, E> Convert<Context<I, F>> for Context<H, E>
where H: From<I>, E: From<F>,