We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa257cd commit d04f6b1Copy full SHA for d04f6b1
src/rule/number/min_max.rs
@@ -5,9 +5,9 @@ macro_rules! define_min_max_rule {
5
pub type [<MinMax $t:camel>]<const MIN: $t, const MAX: $t> = $crate::Refined<[<MinMaxRule $t:camel>]<MIN, MAX>>;
6
7
/// Rule where the target value must be greater than or equal to `MIN` and less than or equal to `MAX`
8
- pub type [<MinMaxRule $t:camel>]<const MIN: $t, const MAX: $t> = $crate::And![
9
- $crate::rule::[<GreaterEqualRule $t:camel>]<MIN>,
10
- $crate::rule::[<LessEqualRule $t:camel>]<MAX>
+ pub type [<MinMaxRule $t:camel>]<const MIN: $t, const MAX: $t> = $crate::Or![
+ $crate::rule::[<RangeRule $t:camel>]<MIN, MAX>,
+ $crate::rule::[<EqualRule $t:camel>]<MAX>
11
];
12
}
13
};
0 commit comments