Registry / utility / type-layout

type-layout

JSON →
library0.2.0rscratesunverified

Derivable trait to view the memory layout of a struct, useful for debugging.

# Cargo.toml [dependencies] type-layout = "0.2.0"
INSTALL
IMPORT
SIG · TYPE-LAYOUT
T
type-layout
utilityrustv0.2.0
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.

TypeLayout
use type_layout::TypeLayout;

Derives and prints the memory layout of a struct.

use type_layout::TypeLayout; #[derive(TypeLayout)] struct MyStruct { x: u32, y: u64, } fn main() { println!("{}", MyStruct::layout()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources