Crate replace_drop

Source
Expand description

ReplaceDrop replaces the drop of a type

It wraps ManuallyDrop and instead of not calling drop, it calls a secondary one This allows you to use other crates like ext to override the drop function of a type

Structs§

ReplaceDrop
A wrapper around ManuallyDrop that instead of removing the drop, replaces it Example:

Traits§

ReplaceDropImpl
Safety

Functions§

replace_drop
Works like drop(val) but uses the ReplaceDropImpl Example: