refinement-types
Refinement types.
Installation
cargo
You can add refinement-types as a dependency with the following command:
$ cargo add refinement-types
Or by directly specifying it in the configuration like so:
[]
= "0.2.0"
Alternatively, you can add it directly from the source:
[]
= "https://github.com/nekitdev/refinement-types.git"
Examples
Library
// lib.rs
use fmt;
use ;
/// Represents device names.
pub type Name<'n> = ;
/// Represents device charge, in percentage.
pub type Charge = ;
/// Represents devices.
Binary
// main.rs
use Result;
use ;
Documentation
You can find the documentation here.
Support
If you need support with the library, you can send an email.
Changelog
You can find the changelog here.
Security Policy
You can find the Security Policy of refinement-types here.
Contributing
If you are interested in contributing to refinement-types, make sure to take a look at the
Contributing Guide, as well as the Code of Conduct.
License
refinement-types is licensed under the MIT License terms. See License for details.