Struct quire::validate::Numeric [−][src]
Numeric validator
Similar to Scalar
but validates that value is a number and also allows
limit the range of the value.
Methods
impl<T: PrimInt> Numeric<T>
[src]
impl<T: PrimInt> Numeric<T>
pub fn new() -> Numeric<T>
[src]
pub fn new() -> Numeric<T>
pub fn optional(self) -> Numeric<T>
[src]
pub fn optional(self) -> Numeric<T>
pub fn default(self, value: T) -> Numeric<T>
[src]
pub fn default(self, value: T) -> Numeric<T>
pub fn min(self, val: T) -> Numeric<T>
[src]
pub fn min(self, val: T) -> Numeric<T>
pub fn max(self, val: T) -> Numeric<T>
[src]
pub fn max(self, val: T) -> Numeric<T>
Trait Implementations
impl<T: Debug + PrimInt> Debug for Numeric<T>
[src]
impl<T: Debug + PrimInt> Debug for Numeric<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Validator for Numeric
[src]
impl Validator for Numeric