Trait BoolExt

Source
pub trait BoolExt {
    // Required method
    fn ok_or_e_fail(self) -> Result<()>;
}

Required Methods§

Source

fn ok_or_e_fail(self) -> Result<()>

Like BOOL::ok(), but returning an Error with HRESULT E_FAIL instead of calling GetLastError().

Implementations on Foreign Types§

Source§

impl BoolExt for BOOL

Implementors§