Expand description
The refining-core prelude.
Macros§
- 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_
str - Lifts static strings to type-level strings.
- xor
- Given two or more predicates, composes them together with
Xor.
Structs§
- And
- Represents predicates that are satisfied when both
PandQare satisfied. - Error
- Represents errors that occur when the value of type
Tdoes not satisfy the predicateP. - False
- Represents predicates that are never satisfied.
- NoContext
- Represents the absence of context.
- Or
- Represents predicates that are satisfied whenever at least
PorQare satisfied. - Refinement
- Represents refinement types.
- True
- Represents predicates that are always satisfied.
- Xor
- Represents predicates that are satisfied whenever
PorQ(but not both) are satisfied.
Traits§
- Check
- Extends any type
Tto check whether values satisfy givenPredicate<T>. - Predicate
- Represents predicates over values of type
T. - Predicate
Expected - Extends values
PimplementingPredicate<T>to returnExpected<T, P>for formatting. - Refine
- Extends any type
Tto allow refining its values withRimplementingRefining<Value = T>. - Refining
- Refinement methods.
- TypeStr
- Represents type-level strings.
Type Aliases§
- Nand
- Represents
Not<And<P, Q>>. - Nor
- Represents
Not<Or<P, Q>>. - Recoverable
- Represents recoverable results.
- Recoverable
Ref - Represents recoverable reference results.
- Recoverable
Refinement - Represents recoverable refining results.
- Recoverable
Refinement Ref - Represents recoverable reference refining results.
- Static
Str - Represents static strings (as in the
VALUEofTypeStr). - Xnor
- Represents
Not<Xor<P, Q>>.