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§impl Debug for U16Validator
impl Debug for U16Validator
Source§impl Default for U16Validator
impl Default for U16Validator
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 Forget for U16Validator
impl Freeze for U16Validator
impl Move 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