pub struct Pcg<M: MathsCore> { /* private fields */ }
Trait Implementations§
source§impl<'de, M: MathsCore> Deserialize<'de> for Pcg<M>
impl<'de, M: MathsCore> Deserialize<'de> for Pcg<M>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<M> Freeze for Pcg<M>
impl<M> RefUnwindSafe for Pcg<M>where
M: RefUnwindSafe,
impl<M> Send for Pcg<M>
impl<M> Sync for Pcg<M>
impl<M> Unpin for Pcg<M>where
M: Unpin,
impl<M> UnwindSafe for Pcg<M>where
M: UnwindSafe,
Blanket Implementations§
§impl<T> Backup for Twhere
T: Clone,
impl<T> Backup for Twhere
T: Clone,
default unsafe fn backup_unchecked(&self) -> T
default unsafe fn __contracts_impl_backup_unchecked(&self) -> T
fn backup(&self) -> BackedUp<Self>
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
§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more§impl<M, R> RngSampler<M> for Rwhere
M: MathsCore,
R: RngCore<M>,
impl<M, R> RngSampler<M> for Rwhere
M: MathsCore,
R: RngCore<M>,
§fn sample_uniform_closed_open(&mut self) -> ClosedOpenUnitF64
fn sample_uniform_closed_open(&mut self) -> ClosedOpenUnitF64
Samples a uniform sample within
[0.0, 1.0)
, i.e. 0.0 <= X < 1.0
§fn sample_uniform_open_closed(&mut self) -> OpenClosedUnitF64
fn sample_uniform_open_closed(&mut self) -> OpenClosedUnitF64
Samples a uniform sample within
(0.0, 1.0]
, i.e. 0.0 < X <= 1.0