pub struct GlobalSeed {
_no_accidental_unsafe_init: (),
}
Expand description
An object representing an initialized global seed.
Does not actually store the seed inside itself, it is a zero-sized type. This prevents inflating the RandomState size and in turn HashMap’s size.
Fields§
§_no_accidental_unsafe_init: ()
Implementations§
Source§impl GlobalSeed
impl GlobalSeed
Trait Implementations§
Source§impl Clone for GlobalSeed
impl Clone for GlobalSeed
Source§fn clone(&self) -> GlobalSeed
fn clone(&self) -> GlobalSeed
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 GlobalSeed
impl Debug for GlobalSeed
impl Copy for GlobalSeed
Auto Trait Implementations§
impl Freeze for GlobalSeed
impl RefUnwindSafe for GlobalSeed
impl Send for GlobalSeed
impl Sync for GlobalSeed
impl Unpin for GlobalSeed
impl UnwindSafe for GlobalSeed
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