Struct randomize::BoundedRandU32
source · pub struct BoundedRandU32 { /* private fields */ }
Expand description
Allows sampling a u32
number in 0 .. N
.
Implementations§
source§impl BoundedRandU32
impl BoundedRandU32
pub const _4: Self = _
pub const _6: Self = _
pub const _8: Self = _
pub const _10: Self = _
pub const _12: Self = _
pub const _20: Self = _
Trait Implementations§
source§impl Clone for BoundedRandU32
impl Clone for BoundedRandU32
source§fn clone(&self) -> BoundedRandU32
fn clone(&self) -> BoundedRandU32
Returns a copy 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 Debug for BoundedRandU32
impl Debug for BoundedRandU32
source§impl Hash for BoundedRandU32
impl Hash for BoundedRandU32
source§impl PartialEq<BoundedRandU32> for BoundedRandU32
impl PartialEq<BoundedRandU32> for BoundedRandU32
source§fn eq(&self, other: &BoundedRandU32) -> bool
fn eq(&self, other: &BoundedRandU32) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BoundedRandU32
impl Eq for BoundedRandU32
impl StructuralEq for BoundedRandU32
impl StructuralPartialEq for BoundedRandU32
Auto Trait Implementations§
impl RefUnwindSafe for BoundedRandU32
impl Send for BoundedRandU32
impl Sync for BoundedRandU32
impl Unpin for BoundedRandU32
impl UnwindSafe for BoundedRandU32
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