pub struct RangeValidator { /* private fields */ }Expand description
Validates numeric values are within a range
Implementations§
Trait Implementations§
Source§impl Clone for RangeValidator
impl Clone for RangeValidator
Source§fn clone(&self) -> RangeValidator
fn clone(&self) -> RangeValidator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RangeValidator
impl Debug for RangeValidator
Source§impl Validator for RangeValidator
impl Validator for RangeValidator
Source§fn validate(&self, node: &Node) -> ValidationResult
fn validate(&self, node: &Node) -> ValidationResult
Validate a node and return Ok(()) or an error message
Source§fn description(&self) -> String
fn description(&self) -> String
Get a description of what this validator checks
Auto Trait Implementations§
impl Freeze for RangeValidator
impl RefUnwindSafe for RangeValidator
impl Send for RangeValidator
impl Sync for RangeValidator
impl Unpin for RangeValidator
impl UnsafeUnpin for RangeValidator
impl UnwindSafe for RangeValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more