conv::errors

Trait UnwrapOk

Source
pub trait UnwrapOk<T> {
    // Required method
    fn unwrap_ok(self) -> T;
}
Expand description

Safely unwrap a Result that cannot contain an error.

Required Methods§

Source

fn unwrap_ok(self) -> T

Unwraps a Result without possibility of failing.

Technically, this is not necessary; it’s provided simply to make user code a little clearer.

Implementations on Foreign Types§

Source§

impl<T> UnwrapOk<T> for Result<T, NoError>

Source§

fn unwrap_ok(self) -> T

Implementors§