/// Creates a `ComItf<T>` from a raw type system COM interface pointer..
///
/// Does not increment the reference count.
///
/// # Safety
///
/// The `ptr` __must__ be a valid COM interface pointer for an interface
/// of type `T`.
Creates a `ComItf` from a raw type system COM interface pointer
Does not increment the reference count.
Creates a ` ComItf ` from a raw type system COM interface pointer Does not increment the reference count .
pub unsafe fn wrap(
        ptr : raw::InterfacePtr<T>,
        ts : TypeSystem
    ) -> Option<ComRc<T>> {
        if ptr.is_null() {
            None
        } else {
            Some( ComRc::attach( ComItf::wrap( ptr, ts ) ) )
        }
    }
pub unsafe fn wrap ( ptr : raw :: InterfacePtr < T > , ts : TypeSystem ) -> Option < ComRc < T > > { if ptr . is_null ( ) { None } else { Some ( ComRc :: attach ( ComItf :: wrap ( ptr , ts ) ) ) } }
Creates a `ComItf<T>` from a raw type system COM interface pointer..
Creates a ` ComItf<T > ` from a raw type system COM interface pointer ..
ptr
raw::InterfacePtr<T>
<not_specific>
ts
TypeSystem
<not_specific>
safety
The `ptr` __must__ be a valid COM interface pointer for an interface
of type `T`.
The ` ptr ` __must__ be a valid COM interface pointer for an interface of type ` T ` .