Enum spinoso_random::Max
source · [−]Available on crate feature
random-rand
only.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
sourceimpl PartialOrd<Max> for Max
impl PartialOrd<Max> for Max
sourcefn partial_cmp(&self, other: &Max) -> Option<Ordering>
fn partial_cmp(&self, other: &Max) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Max
impl StructuralPartialEq for Max
Auto Trait Implementations
impl RefUnwindSafe for Max
impl Send for Max
impl Sync for Max
impl Unpin for Max
impl UnwindSafe for Max
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more