pub trait HResultExt {
// Required method
fn ok_with_hresult(self) -> Result<HRESULT>;
}Required Methods§
Sourcefn ok_with_hresult(self) -> Result<HRESULT>
fn ok_with_hresult(self) -> Result<HRESULT>
Like HRESULT::ok(), but with success HRESULTs forwarded instead of giving (). Useful when working with functions that can return multiple success return values, like AssocQueryStringW().