Struct windows_core::Owned
pub struct Owned<T: Free>(/* private fields */);
Expand description
A wrapper to provide ownership for handles to automatically drop via the handle’s Free
trait.
Implementations§
Trait Implementations§
impl<T: Eq + Free> Eq for Owned<T>
impl<T: Free> StructuralPartialEq for Owned<T>
Auto Trait Implementations§
impl<T> Freeze for Owned<T>where
T: Freeze,
impl<T> RefUnwindSafe for Owned<T>where
T: RefUnwindSafe,
impl<T> Send for Owned<T>where
T: Send,
impl<T> Sync for Owned<T>where
T: Sync,
impl<T> Unpin for Owned<T>where
T: Unpin,
impl<T> UnwindSafe for Owned<T>where
T: UnwindSafe,
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