Trait CResult

Source
pub trait CResult<T, E>: Sized {
    // Required method
    fn to_result(self) -> Result<T, E>;
}

Required Methods§

Source

fn to_result(self) -> Result<T, E>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CResult<i32, Error> for c_int

Source§

impl CResult<passwd, Error> for *mut passwd

Implementors§