10 releases
0.5.2 | Sep 9, 2024 |
---|---|
0.5.1 | Sep 8, 2024 |
0.5.0 | Mar 13, 2024 |
0.4.2 | May 24, 2022 |
0.1.0 | Sep 21, 2020 |
#236 in Rust patterns
7,384 downloads per month
Used in 27 crates
(8 directly)
4KB
phantom-type
A PhantomData
analog which prevents "parameter is never used" error,
but does not produce any restrictions in contrast with PhantomData
.
Optional no_std
If your crate has std
feature, use the following method to specify phantom-type
dependency:
[features]
default = ["std"]
std = ["phantom-type/std"]
[dependencies]
phantom-type = { version = "*", default-features = false }
lib.rs
:
Feature flags
Dependencies
~0.4–1MB
~20K SLoC