Struct weird::Alphabet[][src]

pub struct Alphabet { /* fields omitted */ }

Implementations

impl Alphabet[src]

pub fn from_salt(salt: impl AsRef<[u8]>) -> Self[src]

Shuffle an Alphabet using the provided salt.

pub fn from_seed(seed: u32) -> Self[src]

Shuffle an Alphabet using the provided seed.

pub fn from_rng(rng: &mut impl Rng) -> Self[src]

Shuffle an Alphabet using the provided rng.

Note that the provided implementation should produce the same result each time the alphabet is initialized, otherwise your identifiers will change each time you run your application!

Trait Implementations

impl Clone for Alphabet[src]

impl Debug for Alphabet[src]

Auto Trait Implementations

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> 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, 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>,