pub enum Length {
Max(usize),
Min(usize),
MinMax(usize, usize),
Exact(usize),
}Expand description
Variants§
Max(usize)
The length of the value must be less than or equal to the specified maximum
Min(usize)
The length of the value must be greater than or equal to the specified minimum
MinMax(usize, usize)
The length of the value must be between the specified minimum and maximum (inclusive)
Exact(usize)
The value must be of an exact length
Trait Implementations§
impl Copy for Length
impl Eq for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
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