pub struct OwnedHandle(/* private fields */);
Expand description
An owned handle, which will be closed when dropped.
§Invariant: OwnedHandle
can be transmuted to HandleId
This type is marked as #[repr(transparent)]
to ensure that it can be
transmuted to a HandleId
. Some code depend on this fact so don’t change
the sturcture of this type!
Implementations§
Source§impl OwnedHandle
impl OwnedHandle
Trait Implementations§
Source§impl Debug for OwnedHandle
impl Debug for OwnedHandle
Source§impl Drop for OwnedHandle
impl Drop for OwnedHandle
Source§impl PartialEq for OwnedHandle
impl PartialEq for OwnedHandle
impl Eq for OwnedHandle
impl StructuralPartialEq for OwnedHandle
Auto Trait Implementations§
impl Freeze for OwnedHandle
impl RefUnwindSafe for OwnedHandle
impl Send for OwnedHandle
impl Sync for OwnedHandle
impl Unpin for OwnedHandle
impl UnwindSafe for OwnedHandle
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.