pub enum Threshold<T: Display + Integer + ToBigInt + ToPrimitive + Clone> {
None,
Cap(T),
Ratio(Ratio<T>),
}Variants§
Implementations§
Trait Implementations§
Source§impl<T> ThresholdFor<T> for Threshold<T>
impl<T> ThresholdFor<T> for Threshold<T>
impl<T: Copy + Display + Integer + ToBigInt + ToPrimitive + Clone> Copy for Threshold<T>
Auto Trait Implementations§
impl<T> Freeze for Threshold<T>where
T: Freeze,
impl<T> RefUnwindSafe for Threshold<T>where
T: RefUnwindSafe,
impl<T> Send for Threshold<T>where
T: Send,
impl<T> Sync for Threshold<T>where
T: Sync,
impl<T> Unpin for Threshold<T>where
T: Unpin,
impl<T> UnwindSafe for Threshold<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