NumericRules

Trait NumericRules 

Source
pub trait NumericRules<HashableType>
where HashableType: Debug + Copy + ToTokens + Eq + PartialOrd + Hash,
{ type Unit: ToTokens + PartialEq + PartialOrd + Debug + Display; // Required methods fn constant(&self) -> Option<ConstRule<Self::Unit>>; fn num_containing_rules( &self, field_full_name: &str, ) -> Result<ContainingRules, Vec<Self::Unit>>; fn finite(&self) -> bool; fn comparable_rules( &self, ) -> Result<ComparableRules<Self::Unit>, &'static str>; }
Available on crate features protovalidate and protocheck only.

Required Associated Types§

Required Methods§

Source

fn constant(&self) -> Option<ConstRule<Self::Unit>>

Source

fn num_containing_rules( &self, field_full_name: &str, ) -> Result<ContainingRules, Vec<Self::Unit>>

Source

fn finite(&self) -> bool

Source

fn comparable_rules(&self) -> Result<ComparableRules<Self::Unit>, &'static str>

Implementors§