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 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 Debug for BoundedRandU32
impl Debug for BoundedRandU32
Source§impl Hash for BoundedRandU32
impl Hash for BoundedRandU32
Source§impl PartialEq for BoundedRandU32
impl PartialEq for BoundedRandU32
impl Copy for BoundedRandU32
impl Eq for BoundedRandU32
impl StructuralPartialEq for BoundedRandU32
Auto Trait Implementations§
impl Freeze for BoundedRandU32
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