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