pub struct Ref<I: 'static = ()>(/* private fields */);
Implementations§
Methods from Deref<Target = Object<I>>§
pub unsafe fn iunknown(&self) -> &'static IUnknown<I>
pub unsafe fn interface(&self) -> &'static I
pub fn to_iunknown(&self) -> &Object
pub fn query_interface<J: Interface>(&self) -> Result<Ref<J>, HRESULT>
pub fn query_iunknown(&self) -> Ref
Trait Implementations§
impl<I> Eq for Ref<I>
Auto Trait Implementations§
impl<I> Freeze for Ref<I>
impl<I> RefUnwindSafe for Ref<I>where
I: RefUnwindSafe,
impl<I = ()> !Send for Ref<I>
impl<I = ()> !Sync for Ref<I>
impl<I> Unpin for Ref<I>
impl<I> UnwindSafe for Ref<I>where
I: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more