Crate refinement_types
Source Expand description
Refinement types.
§Examples
TODO
§Features
TODO
pub use core::Error;
pub use core::Predicate;
pub use core::Refinement;
pub use static_str::StaticStr;
pub use type_str::TypeStr;
pub use type_regex::StaticRegex;
regex
pub use type_regex::TypeRegex;
regex
- char
- Predicates for characters.
- core
- Core functionality.
- empty
- Predicates based on emptiness.
- int
- Predicates for integers.
- length
- Predicates based on length.
- logic
- Logical operations on predicates.
- static_str
- Static strings.
- str
- Predicates based on strings.
- type_regex
regex
- Type-level regular expressions.
- type_str
- Type-level strings.
- and
- Given two or more predicates, composes them together with
And
. - not
- Negates the given predicate.
- or
- Given two or more predicates, composes them together with
Or
. - type_regex
regex
- Lifts strings to type-level regular expressions.
- type_str
- Lifts static strings to type-level strings.
- xor
- Given two or more predicates, composes them together with
Xor
.
- Regex
regex
- A compiled regular expression for searching Unicode haystacks.
- ErrorCore
Error
is a trait representing the basic expectations for error values,
i.e., values of type E
in Result<T, E>
.