pub struct Handle<T> { /* private fields */ }Expand description
Resource entry wrapper.
Resources created by the resource_table! macro are wrapped in this struct, and it dereferences to the original type. This is an implementation detail to prevent Rust from aggressively optimizing away memory reads.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Handle<T>
impl<T> RefUnwindSafe for Handle<T>where
T: RefUnwindSafe,
impl<T> !Send for Handle<T>
impl<T> Unpin for Handle<T>
impl<T> UnwindSafe for Handle<T>where
T: 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