Skip to content

Commit 2beb45e

Browse files
committed
add comments for greater_than and less_than
1 parent 20db218 commit 2beb45e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/rule/number/greater.rs

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

7+
/// Rule where the target value must be greater than `THAN`
68
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
79
pub struct [<GreaterRule $t:camel>]<const THAN: $t>;
810

src/rule/number/less.rs

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

7+
/// Rule where the target value must be less than `THAN`
68
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
79
pub struct [<LessRule $t:camel>]<const THAN: $t>;
810

0 commit comments

Comments
 (0)