Registry / utility / dyn-size-of

dyn-size-of

JSON →
library0.4.5rscratesunverified

The library to report approximate amount of memory consumed by variables, including the memory allocated on heap.

# Cargo.toml [dependencies] dyn_size_of = "0.4.5"
INSTALL
IMPORT
SIG · DYN-SIZE-OF
D
dyn-size-of
utilityrustv0.4.5
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.

SizeOf
use dyn_size_of::SizeOf;

Reports the approximate heap memory usage of a variable.

use dyn_size_of::SizeOf; fn main() { let vec = vec![1u8; 100]; println!("Size: {} bytes", vec.size_of()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
dyn-size-of — cargo add dyn-size-of · libregistry