[−][src]Function idioma::into
pub fn into<O, E>(result: Result<O, E>) -> Result<O, Error> where
E: Display,
Use into
to turn any Result
type with a displayable error into Result<O, idioma::Error>
.
This will allow you to use all methods and functions defined for idioma::Error
without having
to explicitly wrap errors from other libraries yourself.
See an example in src/bin/result.rs
.