pub struct SamplerState {
pub algorithm: SamplerAlgorithm,
pub state: u64,
pub words_generated: u64,
pub seed: u64,
pub stream: u64,
}Expand description
Canonical, architecture-independent sampler state.
Fields§
§algorithm: SamplerAlgorithmAlgorithm and stream-version identity.
state: u64Current 64-bit state word.
words_generated: u64Exact number of generated 64-bit words.
seed: u64Root seed from which this stream was constructed.
stream: u64Substream label, zero for the root stream.
Trait Implementations§
Source§impl Clone for SamplerState
impl Clone for SamplerState
Source§fn clone(&self) -> SamplerState
fn clone(&self) -> SamplerState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SamplerState
Source§impl Debug for SamplerState
impl Debug for SamplerState
impl Eq for SamplerState
Source§impl PartialEq for SamplerState
impl PartialEq for SamplerState
impl StructuralPartialEq for SamplerState
Auto Trait Implementations§
impl Freeze for SamplerState
impl RefUnwindSafe for SamplerState
impl Send for SamplerState
impl Sync for SamplerState
impl Unpin for SamplerState
impl UnsafeUnpin for SamplerState
impl UnwindSafe for SamplerState
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