pub enum Predicate {
Uuid,
IntInRange(i64, i64),
F64InRange(f64, f64),
F64Any,
NonEmpty,
AnyText,
}Expand description
What a canonical rule asserts about the value that it erases.
Variants§
Uuid
The value holds a UID of this shape: 8-4-4-4-12 hexadecimal digits.
IntInRange(i64, i64)
The value parses as an integer inside these bounds.
F64InRange(f64, f64)
The value parses as a real number inside these bounds.
F64Any
The value parses as a real number. Any value passes.
This is for a measured benchmark result, whose value carries no meaning across machines. SPEC.md 5.2.
NonEmpty
The value holds at least one character.
AnyText
The value holds any text, including none.
Use this only for a field that carries no protocol meaning. State the reason in the rule.
Implementations§
Auto Trait Implementations§
impl Forget for Predicate
impl Freeze for Predicate
impl Move for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnsafeUnpin for Predicate
impl UnwindSafe for Predicate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more