pub trait BoolExt {
// Required method
fn ok_or_e_fail(self) -> Result<()>;
}Required Methods§
Sourcefn ok_or_e_fail(self) -> Result<()>
fn ok_or_e_fail(self) -> Result<()>
Like BOOL::ok(), but returning an Error with HRESULT E_FAIL instead of calling GetLastError().