Registry / utility / ghost
library0.1.21rscratesunverified

Define your own PhantomData-like types with custom behavior.

# Cargo.toml [dependencies] ghost = "0.1.21"
INSTALL
IMPORT
SIG · GHOST
G
ghost
utilityrustv0.1.21
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.

phantom
use ghost::phantom;

Defines a custom phantom type using the ghost macro.

use ghost::phantom; #[phantom] struct MyPhantom<T>; fn main() { let _p: MyPhantom<u32> = MyPhantom; println!("Phantom type created"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.21latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
ghost — cargo add ghost · libregistry