File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 11macro_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 } ;
Original file line number Diff line number Diff line change 11macro_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 } ;
You can’t perform that action at this time.
0 commit comments