Trait oaidl::TryConvert

source ·
pub trait TryConvert<T, F>where
    Self: Sized,
    F: Fail,
{ fn try_convert(val: T) -> Result<Self, F>; }
Expand description

Pseudo-From trait because of orphan rules

Required Methods§

Utility method which can fail.

Implementations on Foreign Types§

Unwraps the Ptr with [as_ptr()]

Unwraps the Ptr with [as_ptr()]

Clones input, then allocates a new BSTR.

Errors

Allocation can throw BStringError.

Converts the BSTR to a U16String.

Panics

Will panic if BSTR is null.

Clones input, then allocates a new BSTR.

Errors

Allocation can throw SafeArrayError.

Clones input, then allocates a new BSTR.

Errors

Allocation can throw ElementError.

Converts the BSTR to a U16String.

Panics

Will panic if BSTR is null.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Does not return any errors.

Implementors§