| Crates.io | distinct |
| lib.rs | distinct |
| version | 0.1.1 |
| created_at | 2020-06-21 16:49:05.240024+00 |
| updated_at | 2020-06-21 16:58:58.484951+00 |
| description | Two traits for enforcing that two types either must be the same or must be different. |
| homepage | |
| repository | https://github.com/JarredAllen/distinct |
| max_upload_size | |
| id | 256364 |
| size | 16,405 |
Two traits for enforcing that two types either must be the same or must be different.
To use in your crate, add this to your Cargo.toml:
[dependencies]
distinct = "0.1.1"
and add this where you want to use it:
use distinct::{Distinct, NonDistinct};
For full documentation on how to use it, consult this crate's documentation on docs.rs.