Enum validators::prelude::validators_prelude::ValidatorRangeOption [−][src]
pub enum ValidatorRangeOption<T> { Inside { min: Option<T>, max: Option<T>, }, Outside { min: Option<T>, max: Option<T>, }, NotLimited, }
A special kind of options for validators related to ranges.
Variants
Implementations
impl ValidatorRangeOption<f32>
[src]
pub fn inside(&self) -> Option<(Option<f32>, Option<f32>)>
[src]
pub fn outside(&self) -> Option<(Option<f32>, Option<f32>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<f64>
[src]
pub fn inside(&self) -> Option<(Option<f64>, Option<f64>)>
[src]
pub fn outside(&self) -> Option<(Option<f64>, Option<f64>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<u8>
[src]
pub fn inside(&self) -> Option<(Option<u8>, Option<u8>)>
[src]
pub fn outside(&self) -> Option<(Option<u8>, Option<u8>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<u16>
[src]
pub fn inside(&self) -> Option<(Option<u16>, Option<u16>)>
[src]
pub fn outside(&self) -> Option<(Option<u16>, Option<u16>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<u32>
[src]
pub fn inside(&self) -> Option<(Option<u32>, Option<u32>)>
[src]
pub fn outside(&self) -> Option<(Option<u32>, Option<u32>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<u64>
[src]
pub fn inside(&self) -> Option<(Option<u64>, Option<u64>)>
[src]
pub fn outside(&self) -> Option<(Option<u64>, Option<u64>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<u128>
[src]
pub fn inside(&self) -> Option<(Option<u128>, Option<u128>)>
[src]
pub fn outside(&self) -> Option<(Option<u128>, Option<u128>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<usize>
[src]
pub fn inside(&self) -> Option<(Option<usize>, Option<usize>)>
[src]
pub fn outside(&self) -> Option<(Option<usize>, Option<usize>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<i8>
[src]
pub fn inside(&self) -> Option<(Option<i8>, Option<i8>)>
[src]
pub fn outside(&self) -> Option<(Option<i8>, Option<i8>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<i16>
[src]
pub fn inside(&self) -> Option<(Option<i16>, Option<i16>)>
[src]
pub fn outside(&self) -> Option<(Option<i16>, Option<i16>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<i32>
[src]
pub fn inside(&self) -> Option<(Option<i32>, Option<i32>)>
[src]
pub fn outside(&self) -> Option<(Option<i32>, Option<i32>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<i64>
[src]
pub fn inside(&self) -> Option<(Option<i64>, Option<i64>)>
[src]
pub fn outside(&self) -> Option<(Option<i64>, Option<i64>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<i128>
[src]
pub fn inside(&self) -> Option<(Option<i128>, Option<i128>)>
[src]
pub fn outside(&self) -> Option<(Option<i128>, Option<i128>)>
[src]
pub fn not_limited(&self) -> bool
[src]
impl ValidatorRangeOption<isize>
[src]
pub fn inside(&self) -> Option<(Option<isize>, Option<isize>)>
[src]
pub fn outside(&self) -> Option<(Option<isize>, Option<isize>)>
[src]
pub fn not_limited(&self) -> bool
[src]
Trait Implementations
impl<T> Clone for ValidatorRangeOption<T> where
T: Clone,
[src]
T: Clone,
pub fn clone(&self) -> ValidatorRangeOption<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for ValidatorRangeOption<T> where
T: Debug,
[src]
T: Debug,
impl<T> Default for ValidatorRangeOption<T>
[src]
pub fn default() -> ValidatorRangeOption<T>
[src]
impl<T> Eq for ValidatorRangeOption<T> where
T: Eq,
[src]
T: Eq,
impl<T> PartialEq<ValidatorRangeOption<T>> for ValidatorRangeOption<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
pub fn eq(&self, other: &ValidatorRangeOption<T>) -> bool
[src]
pub fn ne(&self, other: &ValidatorRangeOption<T>) -> bool
[src]
impl<T> StructuralEq for ValidatorRangeOption<T>
[src]
impl<T> StructuralPartialEq for ValidatorRangeOption<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ValidatorRangeOption<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ValidatorRangeOption<T> where
T: Send,
T: Send,
impl<T> Sync for ValidatorRangeOption<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ValidatorRangeOption<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ValidatorRangeOption<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
pub fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,