ValidateRange

Trait ValidateRange 

Source
pub trait ValidateRange<F: ?Sized, R, Idx: ?Sized> {
    // Required method
    fn validate_range(&self, field: &F, range: &R) -> Result<(), ValidatorError>;
}

Required Methods§

Source

fn validate_range(&self, field: &F, range: &R) -> Result<(), ValidatorError>

Implementors§

Source§

impl<F, R, Idx, T> ValidateRange<F, R, Idx> for T
where F: Display + ?Sized, R: RangeBounds<Idx> + Debug, Idx: PartialOrd<Idx> + PartialOrd<Self> + Debug + ?Sized, Self: PartialOrd<Idx>,