pub enum Range<T: PartialOrd + Clone + Display + Default + Debug> {
AtMost(T),
AtLeast(T),
Exact(T),
Only(Vec<T>),
Interval {
min: T,
max: T,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl<T: PartialOrd + Clone + Display + Default + Debug + Eq + Add<Output = T> + Copy> Add<T> for Range<T>
impl<T: PartialOrd + Clone + Display + Default + Debug + Eq + Add<Output = T> + Copy> Add<T> for Range<T>
Source§impl<T: PartialOrd + Clone + Display + Default + Debug + Eq> From<RangeInclusive<T>> for Range<T>
impl<T: PartialOrd + Clone + Display + Default + Debug + Eq> From<RangeInclusive<T>> for Range<T>
Source§fn from(val: RangeInclusive<T>) -> Range<T>
fn from(val: RangeInclusive<T>) -> Range<T>
Converts to this type from the input type.
impl<T: Eq + PartialOrd + Clone + Display + Default + Debug> Eq for Range<T>
impl<T: PartialOrd + Clone + Display + Default + Debug> StructuralPartialEq for Range<T>
Auto Trait Implementations§
impl<T> Freeze for Range<T>where
T: Freeze,
impl<T> RefUnwindSafe for Range<T>where
T: RefUnwindSafe,
impl<T> Send for Range<T>where
T: Send,
impl<T> Sync for Range<T>where
T: Sync,
impl<T> Unpin for Range<T>where
T: Unpin,
impl<T> UnsafeUnpin for Range<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Range<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