pub fn smaller_than<T: PartialOrd>(a: T) -> impl Fn(T) -> bool
Expand description
Returns a closure that takes an argument and checks if it is greater than the given value a
.
This can be passed to #[valid]
attribute like: #[valid(fn(smaller_than(5))]
.