binius_field::underlier

Trait Random

Source
pub trait Random {
    // Required method
    fn random(rng: impl RngCore) -> Self;
}
Expand description

A value that can be randomly generated

Required Methods§

Source

fn random(rng: impl RngCore) -> Self

Generate random value

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.

Implementors§

Source§

impl<T> Random for T

Source§

impl<U: Random, const N: usize> Random for ScaledUnderlier<U, N>

Source§

impl<const N: usize> Random for SmallU<N>