Expand description
Predicates based on length.
Structs§
- Equal
- Checks whether the given value has length equal to
N. - Equal
Error - Represents errors that occur when the provided value has length not equal to some bound.
- Greater
- Checks whether the given value has length greater than
N. - Greater
Error - Represents errors that occur when the provided value has length less than or equal to some bound.
- Greater
OrEqual - Checks whether the given value has length greater than or equal to
N. - Greater
OrEqual Error - Represents errors that occur when the provided value has length less than some bound.
- Less
- Checks whether the given value has length less than
N. - Less
Error - Represents errors that occur when the provided value has length greater than or equal to some bound.
- Less
OrEqual - Checks whether the given value has length less than or equal to
N. - Less
OrEqual Error - Represents errors that occur when the provided value has length greater than some bound.
- Modulo
- Checks whether the given value length divided by
Dhas moduloM. - Modulo
Error - Represents errors when the provided value has
length divided by
divisornot equal tomodulo. - NotEqual
- Checks whether the given value has length not equal to
N. - NotEqual
Error - Represents errors that occur when the provided value has length equal to some bound.
Traits§
- HasLength
- Represents types that have length defined for their values.
Type Aliases§
- Closed
- Represents
[M, N]intervals. - Closed
Open - Represents
[M, N)intervals. - Divisible
- Checks whether the given value length is divisible by
D. - Even
- Checks whether the given value length is even.
- NonZero
- Checks whether the given value has non-zero length.
- Odd
- Checks whether the given value length is odd.
- Open
- Represents
(M, N)intervals. - Open
Closed - Represents
(M, N]intervals. - Zero
- Checks whether the given value has zero length.