pub struct ExactLength(pub usize);
Expand description
A Validator
that creates a constraint that the string must be exactly a certain length.
Use with IndexedArray
for best results.
Tuple Fields§
§0: usize
Trait Implementations§
Source§impl Validator<String> for ExactLength
impl Validator<String> for ExactLength
Auto Trait Implementations§
impl Freeze for ExactLength
impl RefUnwindSafe for ExactLength
impl Send for ExactLength
impl Sync for ExactLength
impl Unpin for ExactLength
impl UnwindSafe for ExactLength
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