Trait Rand

Source
pub trait Rand {
    // Required method
    fn rand() -> Self;
}
Expand description

Generate a random version of the implementor

Required Methods§

Source

fn rand() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Rand for bool

Source§

fn rand() -> Self

Source§

impl Rand for char

Source§

fn rand() -> Self

Source§

impl Rand for f32

Source§

fn rand() -> Self

Source§

impl Rand for f64

Source§

fn rand() -> Self

Source§

impl Rand for i8

Source§

fn rand() -> Self

Source§

impl Rand for i16

Source§

fn rand() -> Self

Source§

impl Rand for i32

Source§

fn rand() -> Self

Source§

impl Rand for i64

Source§

fn rand() -> Self

Source§

impl Rand for i128

Source§

fn rand() -> Self

Source§

impl Rand for isize

Source§

fn rand() -> Self

Source§

impl Rand for u8

Source§

fn rand() -> Self

Source§

impl Rand for u16

Source§

fn rand() -> Self

Source§

impl Rand for u32

Source§

fn rand() -> Self

Source§

impl Rand for u64

Source§

fn rand() -> Self

Source§

impl Rand for u128

Source§

fn rand() -> Self

Source§

impl Rand for ()

Source§

fn rand() -> Self

Source§

impl Rand for usize

Source§

fn rand() -> Self

Source§

impl Rand for String

Source§

fn rand() -> Self

Source§

impl Rand for NonZeroU8

Source§

fn rand() -> Self

Source§

impl Rand for NonZeroU16

Source§

fn rand() -> Self

Source§

impl Rand for NonZeroU32

Source§

fn rand() -> Self

Source§

impl Rand for NonZeroU64

Source§

fn rand() -> Self

Source§

impl Rand for NonZeroU128

Source§

fn rand() -> Self

Source§

impl Rand for NonZeroUsize

Source§

fn rand() -> Self

Source§

impl<A> Rand for (A,)
where A: Rand,

Source§

impl<A, B> Rand for (A, B)
where A: Rand, B: Rand,

Source§

impl<A, B, C> Rand for (A, B, C)
where A: Rand, B: Rand, C: Rand,

Source§

impl<A, B, C, D> Rand for (A, B, C, D)
where A: Rand, B: Rand, C: Rand, D: Rand,

Source§

impl<A, B, C, D, E> Rand for (A, B, C, D, E)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand,

Source§

impl<A, B, C, D, E, F> Rand for (A, B, C, D, E, F)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand,

Source§

impl<A, B, C, D, E, F, G> Rand for (A, B, C, D, E, F, G)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand,

Source§

impl<A, B, C, D, E, F, G, H> Rand for (A, B, C, D, E, F, G, H)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I> Rand for (A, B, C, D, E, F, G, H, I)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J> Rand for (A, B, C, D, E, F, G, H, I, J)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> Rand for (A, B, C, D, E, F, G, H, I, J, K)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> Rand for (A, B, C, D, E, F, G, H, I, J, K, L)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Rand for (A, B, C, D, E, F, G, H, I, J, K, L, M)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand, M: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Rand for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand, M: Rand, N: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> Rand for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand, M: Rand, N: Rand, O: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Rand for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand, M: Rand, N: Rand, O: Rand, P: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> Rand for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand, M: Rand, N: Rand, O: Rand, P: Rand, Q: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> Rand for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand, M: Rand, N: Rand, O: Rand, P: Rand, Q: Rand, R: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> Rand for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand, M: Rand, N: Rand, O: Rand, P: Rand, Q: Rand, R: Rand, S: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> Rand for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand, M: Rand, N: Rand, O: Rand, P: Rand, Q: Rand, R: Rand, S: Rand, T: Rand,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> Rand for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)
where A: Rand, B: Rand, C: Rand, D: Rand, E: Rand, F: Rand, G: Rand, H: Rand, I: Rand, J: Rand, K: Rand, L: Rand, M: Rand, N: Rand, O: Rand, P: Rand, Q: Rand, R: Rand, S: Rand, T: Rand, U: Rand,

Source§

impl<K: Rand + Hash + Eq> Rand for HashSet<K>

Source§

fn rand() -> Self

Source§

impl<K: Rand + Hash + Eq, V: Rand> Rand for HashMap<K, V>

Source§

fn rand() -> Self

Source§

impl<T: Rand> Rand for Option<T>

Source§

fn rand() -> Self

Source§

impl<T: Rand> Rand for Vec<T>

Source§

fn rand() -> Self

Source§

impl<T: Rand> Rand for Wrapping<T>

Source§

fn rand() -> Self

Source§

impl<T: Rand, const N: usize> Rand for [T; N]

Source§

fn rand() -> Self

Implementors§