[][src]Struct dqcsim::host::configuration::Seed

pub struct Seed {
    pub value: u64,
}

Represents a 64-bit random seed. Can be converted to and from a string as you would expect a seed to be. Also implements std::default::Default, which returns a random seed (from the random crate).

Fields

value: u64

The random seed.

Trait Implementations

impl Clone for Seed[src]

impl Debug for Seed[src]

impl Default for Seed[src]

fn default() -> Self[src]

Returns a randomly generated seed using the random crate.

impl<'de> Deserialize<'de> for Seed[src]

impl Display for Seed[src]

impl<'_> From<&'_ str> for Seed[src]

fn from(s: &str) -> Self[src]

Turns a string into a seed. The string is parsed as a u64 if possible; if this fails, Rust's default hasher is used to turn the string into a u64.

impl Into<u64> for Seed[src]

fn into(self) -> u64[src]

Returns the embedded seed.

impl PartialEq<Seed> for Seed[src]

impl Serialize for Seed[src]

impl StructuralPartialEq for Seed[src]

Auto Trait Implementations

impl RefUnwindSafe for Seed

impl Send for Seed

impl Sync for Seed

impl Unpin for Seed

impl UnwindSafe for Seed

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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