Skip to main content
A trait for types that can be safely dropped. Types implementing Drop can be automatically discarded when they go out of scope. The drop operation is a no-op - it simply indicates to the compiler that this type can be safely discarded.

Signature

Examples

Without Drop:
With Drop: