[−][src]Struct pcg::PcgSeed
A wrapper type for the PcgSeed
This wrapper allows us to implement a SeedableRng
for Pcg
. There are also conversion traits
defined so that you can switch between PcgSeed
and U64
easily. The lowest bit in the lowest
index of the underlying array corresponds to the most significant bit in the converted U64
.
For example: [0, 1, 2, 3, 4, 5, 6, 7]
corresponds to 01234567
when converted to the packged
unsigned integer representation.
Trait Implementations
impl AsMut<[u8]> for PcgSeed
[src]
impl Clone for PcgSeed
[src]
impl Copy for PcgSeed
[src]
impl Debug for PcgSeed
[src]
impl Default for PcgSeed
[src]
impl Eq for PcgSeed
[src]
impl From<PcgSeed> for U64
[src]
impl From<U64> for PcgSeed
[src]
impl From<u64> for PcgSeed
[src]
impl Hash for PcgSeed
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<PcgSeed> for PcgSeed
[src]
impl StructuralEq for PcgSeed
[src]
impl StructuralPartialEq for PcgSeed
[src]
Auto Trait Implementations
impl RefUnwindSafe for PcgSeed
impl Send for PcgSeed
impl Sync for PcgSeed
impl Unpin for PcgSeed
impl UnwindSafe for PcgSeed
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,