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<ValidatorRangeOption<T>> for ValidatorRangeOption<T>
impl<T: PartialEq> PartialEq<ValidatorRangeOption<T>> for ValidatorRangeOption<T>
source§fn eq(&self, other: &ValidatorRangeOption<T>) -> bool
fn eq(&self, other: &ValidatorRangeOption<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for ValidatorRangeOption<T>
impl<T> StructuralEq for ValidatorRangeOption<T>
impl<T> StructuralPartialEq for ValidatorRangeOption<T>
Auto Trait Implementations§
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