Registry / utility / get-size

get-size

JSON →
library0.1.4rscratesunverified

Determine the size in bytes an object occupies inside RAM.

# Cargo.toml [dependencies] get-size = "0.1.4"
INSTALL
IMPORT
SIG · GET-SIZE
G
get-size
utilityrustv0.1.4
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.

GetSize
✓ use get_size::GetSize;

Get the heap size of a vector.

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

No known issues recorded.

Upgrade
Version history
0.1.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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