Registry / utility / nodrop

nodrop

JSON →
library0.1.14rscratesunverified

A wrapper type to inhibit drop (destructor). Deprecated: Use ManuallyDrop or MaybeUninit instead.

# Cargo.toml [dependencies] nodrop = "0.1.14"
INSTALL
IMPORT
SIG · NODROP
N
nodrop
utilityrustv0.1.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NoDrop
use nodrop::NoDrop;

Wraps a value to inhibit its destructor.

use nodrop::NoDrop; fn main() { let value = NoDrop::new(42); // NoDrop prevents drop from running }
Debug
Known issues
breakingDeprecated; use std::mem::ManuallyDrop or MaybeUninit instead.
fix
Replace with ManuallyDrop or MaybeUninit from the standard library.
affects: >=0.1.0
Upgrade
Version history
0.1.14latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
nodrop — cargo add nodrop · libregistry