pub struct LeakStrategy();Expand description
Strategy which will leak the contained value rather than dropping it.
This is not normally useful, except for testing what the overhead is of whatever code is surrounding your drop glue.
Trait Implementations§
Source§impl<T> BackdropStrategy<T> for LeakStrategy
impl<T> BackdropStrategy<T> for LeakStrategy
Auto Trait Implementations§
impl Freeze for LeakStrategy
impl RefUnwindSafe for LeakStrategy
impl Send for LeakStrategy
impl Sync for LeakStrategy
impl Unpin for LeakStrategy
impl UnwindSafe for LeakStrategy
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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