distinct 0.1.1

Two traits for enforcing that two types either must be the same or must be different.
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented1 out of 4 items with examples
  • Size
  • Source code size: 16.03 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 301.29 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • JarredAllen/distinct
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • JarredAllen

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:

[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.