Skip to main content

AsResult

Trait AsResult 

Source
pub trait AsResult<T, E> {
    // Required method
    fn as_result(&self) -> Result<T, E>;
}
Expand description

Converts the type into a std::io::Result<()> by reference

Required Methods§

Source

fn as_result(&self) -> Result<T, E>

Converts the type into a std::io::Result<()> by reference

Implementations on Foreign Types§

Source§

impl AsResult<(), Error> for ExitStatus

Implementors§