pub struct U16Validator;Available on crate feature
prompt only.Expand description
Validates that the input parses as a u16.
Trait Implementations§
Source§impl Clone for U16Validator
impl Clone for U16Validator
Source§fn clone(&self) -> U16Validator
fn clone(&self) -> U16Validator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 U16Validator
impl Debug for U16Validator
Source§impl Default for U16Validator
impl Default for U16Validator
Source§fn default() -> U16Validator
fn default() -> U16Validator
Returns the “default value” for a type. Read more
Source§impl StringValidator for U16Validator
impl StringValidator for U16Validator
Source§fn validate(&self, input: &str) -> Result<Validation, CustomUserError>
fn validate(&self, input: &str) -> Result<Validation, CustomUserError>
Confirm the given input string is a valid value.
Auto Trait Implementations§
impl Freeze for U16Validator
impl RefUnwindSafe for U16Validator
impl Send for U16Validator
impl Sync for U16Validator
impl Unpin for U16Validator
impl UnsafeUnpin for U16Validator
impl UnwindSafe for U16Validator
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