From 2beb45ebd6d8cb68adf4a8d4b93d6351a7582c60 Mon Sep 17 00:00:00 2001 From: tomoikey <55743826+tomoikey@users.noreply.github.com> Date: Wed, 30 Oct 2024 00:29:59 +0900 Subject: [PATCH] add comments for greater_than and less_than --- src/rule/number/greater.rs | 2 ++ src/rule/number/less.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/rule/number/greater.rs b/src/rule/number/greater.rs index 59b9d07..370b127 100644 --- a/src/rule/number/greater.rs +++ b/src/rule/number/greater.rs @@ -1,8 +1,10 @@ macro_rules! define_greater_rule { ($t: ty) => { $crate::paste::item! { + /// A type that holds a value satisfying the `GreaterRule` pub type [] = $crate::Refined<[]>; + /// Rule where the target value must be greater than `THAN` #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] pub struct []; diff --git a/src/rule/number/less.rs b/src/rule/number/less.rs index 2cfae5c..de5a94c 100644 --- a/src/rule/number/less.rs +++ b/src/rule/number/less.rs @@ -1,8 +1,10 @@ macro_rules! define_less_rule { ($t: ty) => { $crate::paste::item! { + /// A type that holds a value satisfying the `LessRule` pub type [] = $crate::Refined<[]>; + /// Rule where the target value must be less than `THAN` #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] pub struct [];