Struct necsim_impls_std::cogs::rng::pcg::Pcg

source ·
pub struct Pcg<M: MathsCore> { /* private fields */ }

Trait Implementations§

source§

impl<M: MathsCore> Clone for Pcg<M>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<M: MathsCore> Debug for Pcg<M>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, M: MathsCore> Deserialize<'de> for Pcg<M>

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<M: MathsCore> RngCore<M> for Pcg<M>

§

type Seed = [u8; 16]

source§

fn from_seed(seed: Self::Seed) -> Self

source§

fn sample_u64(&mut self) -> u64

source§

impl<M: MathsCore> Serialize for Pcg<M>

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<M: MathsCore> SplittableRng<M> for Pcg<M>

source§

fn split(self) -> (Self, Self)

source§

fn split_to_stream(self, stream: u64) -> Self

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Backup for T
where 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> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> ExtractDiscriminant for T

§

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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<M, R> RngSampler<M> for R
where M: MathsCore, R: RngCore<M>,

§

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

Samples a uniform sample within (0.0, 1.0], i.e. 0.0 < X <= 1.0
§

fn sample_index(&mut self, length: NonZero<usize>) -> usize

Contracts Read more
§

fn sample_index_u32(&mut self, length: NonZero<u32>) -> u32

Contracts Read more
§

fn sample_index_u64(&mut self, length: NonZero<u64>) -> u64

Contracts Read more
§

fn sample_index_u128(&mut self, length: NonZero<u128>) -> u128

Contracts Read more
§

fn sample_exponential(&mut self, lambda: PositiveF64) -> NonNegativeF64

§

fn sample_event(&mut self, probability: ClosedUnitF64) -> bool

§

fn sample_2d_standard_normal(&mut self) -> (f64, f64)

§

fn sample_2d_normal(&mut self, mu: f64, sigma: NonNegativeF64) -> (f64, f64)

§

impl<M, R> SeedableRng<M> for R
where M: MathsCore, R: RngCore<M>,

§

fn seed_from_u64(state: u64) -> Self

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> Data for T
where T: Send + Clone,

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Erased for T

source§

impl<T> PortableBitSemantics for T
where T: PortableBitSemantics + ?Sized,

source§

impl<T> StackOnly for T
where T: StackOnly,