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§
- Replace
Drop - A wrapper around ManuallyDrop that instead of removing the drop, replaces it Example:
Traits§
- Replace
Drop Impl - Safety
Functions§
- replace_
drop - Works like drop(val) but uses the ReplaceDropImpl Example: