pub struct UsizeValidator;Available on crate feature
prompt only.Expand description
Validates that the input parses as a usize.
Trait Implementations§
Source§impl Clone for UsizeValidator
impl Clone for UsizeValidator
Source§fn clone(&self) -> UsizeValidator
fn clone(&self) -> UsizeValidator
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 UsizeValidator
impl Debug for UsizeValidator
Source§impl Default for UsizeValidator
impl Default for UsizeValidator
Source§fn default() -> UsizeValidator
fn default() -> UsizeValidator
Returns the “default value” for a type. Read more
Source§impl StringValidator for UsizeValidator
impl StringValidator for UsizeValidator
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 UsizeValidator
impl RefUnwindSafe for UsizeValidator
impl Send for UsizeValidator
impl Sync for UsizeValidator
impl Unpin for UsizeValidator
impl UnsafeUnpin for UsizeValidator
impl UnwindSafe for UsizeValidator
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