distinct

Crates.io Page Docs.rs Page

Two traits for enforcing that two types either must be the same or must be different.

Usage

To use in your crate, add this to your Cargo.toml: toml [dependencies] distinct = "0.1.1"

and add this where you want to use it: rust use distinct::{Distinct, NonDistinct};

For full documentation on how to use it, consult this crate's documentation on docs.rs.