pub enum LimitValue<T> {
Limit(T),
Limitless,
}Variants§
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for LimitValue<T>
impl<T: Clone> Clone for LimitValue<T>
Source§fn clone(&self) -> LimitValue<T>
fn clone(&self) -> LimitValue<T>
Returns a duplicate 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 LimitValue<T>
impl<T: Debug> Debug for LimitValue<T>
Source§impl<T: Clone + Default + PartialEq + PartialOrd> PartialEq for LimitValue<T>
impl<T: Clone + Default + PartialEq + PartialOrd> PartialEq for LimitValue<T>
Source§impl<T: Clone + Default + PartialOrd> PartialOrd for LimitValue<T>
impl<T: Clone + Default + PartialOrd> PartialOrd for LimitValue<T>
impl<T: Clone + Default + PartialOrd> Eq for LimitValue<T>
Auto Trait Implementations§
impl<T> Freeze for LimitValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for LimitValue<T>where
T: RefUnwindSafe,
impl<T> Send for LimitValue<T>where
T: Send,
impl<T> Sync for LimitValue<T>where
T: Sync,
impl<T> Unpin for LimitValue<T>where
T: Unpin,
impl<T> UnwindSafe for LimitValue<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