[−][src]Crate must_destroy
must_destroy
Must destroy is used to create a paramterized destructor for a type that must be explicitly called.
MustDestroy<T>
acts as a guard for a wrapped type that implements the Destroy
trait, that causes a panic
if the guard is dropped.
However, calling destroy upon the guard, will call destroy on wrapped child, and will be consumed safely.
Structs
MustDestroy | The value contained is an item that can't be dropped and must be
destroyed via calling it's |
Traits
Destroy | Trait applied to items that can be destroyed. |