| Crates.io | phantom-type |
| lib.rs | phantom-type |
| version | 0.5.2 |
| created_at | 2020-09-21 17:15:25.497064+00 |
| updated_at | 2024-09-09 15:27:43.577655+00 |
| description | A `PhantomData` analog which prevents "parameter is never used" error, but does not produce any restrictions in contrast with `PhantomData`. |
| homepage | |
| repository | https://github.com/A1-Triard/phantom-type |
| max_upload_size | |
| id | 291229 |
| size | 5,836 |
A PhantomData analog which prevents "parameter is never used" error,
but does not produce any restrictions in contrast with PhantomData.
no_stdIf 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 }