pub enum ValidatorRangeOption<T> {
Inside {
min: Option<T>,
max: Option<T>,
},
Outside {
min: Option<T>,
max: Option<T>,
},
NotLimited,
}
Expand description
A special kind of options for validators related to ranges.
Variants§
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for ValidatorRangeOption<T>
impl<T: Clone> Clone for ValidatorRangeOption<T>
Source§fn clone(&self) -> ValidatorRangeOption<T>
fn clone(&self) -> ValidatorRangeOption<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for ValidatorRangeOption<T>
impl<T: Debug> Debug for ValidatorRangeOption<T>
Source§impl<T> Default for ValidatorRangeOption<T>
impl<T> Default for ValidatorRangeOption<T>
Source§impl<T: PartialEq> PartialEq for ValidatorRangeOption<T>
impl<T: PartialEq> PartialEq for ValidatorRangeOption<T>
impl<T: Eq> Eq for ValidatorRangeOption<T>
impl<T> StructuralPartialEq for ValidatorRangeOption<T>
Auto Trait Implementations§
impl<T> Freeze for ValidatorRangeOption<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValidatorRangeOption<T>where
T: RefUnwindSafe,
impl<T> Send for ValidatorRangeOption<T>where
T: Send,
impl<T> Sync for ValidatorRangeOption<T>where
T: Sync,
impl<T> Unpin for ValidatorRangeOption<T>where
T: Unpin,
impl<T> UnwindSafe for ValidatorRangeOption<T>where
T: UnwindSafe,
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