pub unsafe fn wrap( ptr : raw::InterfacePtr<T>, ts : TypeSystem ) -> ComItf<T> {
        match ts {
            TypeSystem::Automation => ComItf {
                raw_ptr: raw::InterfacePtr::null(),
                automation_ptr: ptr,
                phantom: PhantomData,
            },
            TypeSystem::Raw => ComItf {
                raw_ptr: ptr,
                automation_ptr: raw::InterfacePtr::null(),
                phantom: PhantomData
            }
        }
    }
/// Creates a `ComItf<T>` from a raw type system COM interface pointer..
///
/// # 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
Creates a ` ComItf ` from a raw type system COM interface pointer
pub unsafe fn wrap( ptr : raw::InterfacePtr<T>, ts : TypeSystem ) -> ComItf<T> {
        match ts {
            TypeSystem::Automation => ComItf {
                raw_ptr: raw::InterfacePtr::null(),
                automation_ptr: ptr,
                phantom: PhantomData,
            },
            TypeSystem::Raw => ComItf {
                raw_ptr: ptr,
                automation_ptr: raw::InterfacePtr::null(),
                phantom: PhantomData
            }
        }
    }
pub unsafe fn wrap ( ptr : raw :: InterfacePtr < T > , ts : TypeSystem ) -> ComItf < T > { match ts { TypeSystem :: Automation => ComItf { raw_ptr : raw :: InterfacePtr :: null ( ) , automation_ptr : ptr , phantom : PhantomData , } , TypeSystem :: Raw => ComItf { raw_ptr : ptr , automation_ptr : raw :: InterfacePtr :: null ( ) , phantom : PhantomData } } }
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>
ts
TypeSystem
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 ` .