Lines Matching refs:ComPtr
33 pub struct ComPtr<T>(*mut T) struct
36 impl<T> ComPtr<T> implementation
43 pub unsafe fn from_raw(ptr: *mut T) -> ComPtr<T> { in from_raw()
45 ComPtr(ptr) in from_raw()
48 pub fn up<U>(self) -> ComPtr<U> in up()
53 ComPtr(self.into_raw() as *mut U) in up()
67 pub fn cast<U>(&self) -> Result<ComPtr<U>, i32> in cast()
76 Ok(unsafe { ComPtr::from_raw(obj as *mut U) }) in cast()
79 impl<T> Deref for ComPtr<T> implementation
88 impl<T> Clone for ComPtr<T> implementation
95 ComPtr::from_raw(self.0) in clone()
99 impl<T> Drop for ComPtr<T> implementation