Skip to main content

IntoError

Trait IntoError 

Source
pub trait IntoError<T> {
    // Required method
    fn into_error(self) -> Res<T>;
}

Required Methods§

Source

fn into_error(self) -> Res<T>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, S> IntoError<T> for S
where S: AsRef<str> + ToString,