pub struct Handle<T> { /* private fields */ }
Expand description
Allows values to “escape” dropping by sending them to the Terminal
.
Permit sharing unlike Escape
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> Sync 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> MemoryUsage for T
impl<T> MemoryUsage for T
Source§fn properties_required(&self) -> Properties
fn properties_required(&self) -> Properties
Get set of properties required for the usage.
Source§fn memory_fitness(&self, properties: Properties) -> u32
fn memory_fitness(&self, properties: Properties) -> u32
Get comparable fitness value for memory properties. Read more
Source§fn allocator_fitness(&self, kind: Kind) -> u32
fn allocator_fitness(&self, kind: Kind) -> u32
Get comparable fitness value for memory allocator.