Skip to content

Commit 20db218

Browse files
committed
add comments greater equal and less equal
1 parent 9cc66eb commit 20db218

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/rule/number/greater_equal.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
macro_rules! declare_greater_equal_rule {
22
($ty: ty) => {
33
$crate::paste::item! {
4+
/// A type that holds a value satisfying the `GreaterEqualRule`
45
pub type [<GreaterEqual $ty:camel>]<const N: $ty> = $crate::Refined<[<GreaterEqualRule $ty:camel>]<N>>;
56

7+
/// Rule where the target value must be greater than or equal to `N`
68
pub type [<GreaterEqualRule $ty:camel>]<const N: $ty> = $crate::Or![$crate::rule::[<EqualRule $ty:camel>]<N>, $crate::rule::[<GreaterRule $ty:camel>]<N>];
79
}
810
};

src/rule/number/less_equal.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
macro_rules! declare_less_equal_rule {
22
($ty: ty) => {
33
$crate::paste::item! {
4+
/// A type that holds a value satisfying the `LessEqualRule`
45
pub type [<LessEqual $ty:camel>]<const N: $ty> = $crate::Refined<[<LessEqualRule $ty:camel>]<N>>;
56

7+
/// Rule where the target value must be less than or equal to `N`
68
pub type [<LessEqualRule $ty:camel>]<const N: $ty> = $crate::Or![$crate::rule::[<EqualRule $ty:camel>]<N>, $crate::rule::[<LessRule $ty:camel>]<N>];
79
}
810
};

0 commit comments

Comments
 (0)