Enum RngSeed

pub enum RngSeed

The seed for the RNG, can either be random or specified as a u64.

Variants

Random

Default case, use a random value

Fixed(u64)

Use a specific value to generate a seed

Trait Implementations

impl Clone for RngSeed

fn clone(&self) -> RngSeed

impl Copy for RngSeed

impl Debug for RngSeed

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

impl Display for RngSeed

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

impl FromStr for RngSeed

type Err = ();
fn from_str(s: &str) -> Result<Self, Self::Err>

impl PartialEq for RngSeed

fn eq(&self, other: &RngSeed) -> bool

impl StructuralPartialEq for RngSeed

Auto Trait Implementations

impl Freeze for RngSeed

impl RefUnwindSafe for RngSeed

impl Send for RngSeed

impl Sync for RngSeed

impl Unpin for RngSeed

impl UnsafeUnpin for RngSeed

impl UnwindSafe for RngSeed

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for RngSeed where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for RngSeed where ST: ?Sized, DT: ?Sized,

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for RngSeed where T: ?Sized,

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for RngSeed where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for RngSeed

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for RngSeed where T: ?Sized,

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for RngSeed where T: Display + ?Sized,

fn to_string(&self) -> String

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

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<T, U> TryFrom<U> for RngSeed where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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

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

fn vzip(self) -> V