pub enum Max {
Float(f64),
Integer(i64),
None,
}
Expand description
A range constraint for generating random numbers.
This enum is an input to the rand()
function. See its documentation for
more details.
Variants§
Float(f64)
A maximum float bound.
This bound is exclusive.
Integer(i64)
A maximum integer bound.
This bound is exclusive.
None
The default bound when no bound is supplied.
This bound corresponds to Max::Float(1.0)
.
Trait Implementations§
Source§impl PartialOrd for Max
impl PartialOrd for Max
impl Copy for Max
impl StructuralPartialEq for Max
Auto Trait Implementations§
impl Freeze for Max
impl RefUnwindSafe for Max
impl Send for Max
impl Sync for Max
impl Unpin for Max
impl UnwindSafe for Max
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