[][src]Trait strerror::IntoErr

pub trait IntoErr {
    fn into_err<T, E>(self) -> Result<T, E>
    where
        Self: Into<E>
; }

Trait providing into_err for converting a String, &str or error to an Err variant Result.

into_err has a very simple implementation: Err(self.into()), which is similar to how the ? operator returns errors.

See crate level documentation for usage examples.

Required methods

fn into_err<T, E>(self) -> Result<T, E> where
    Self: Into<E>, 

Convert a String, &str or error to an Err variant Result.

Loading content...

Implementors

impl<C> IntoErr for C[src]

Loading content...