Trait Random

Source
pub trait Random: Sized {
    // Required method
    fn random<G: ?Sized + RandomGen>(g: &mut G) -> Self;
}

Required Methods§

Source

fn random<G: ?Sized + RandomGen>(g: &mut G) -> 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 Random for f32

Source§

impl Random for f64

Source§

impl Random for i32

Source§

impl Random for i64

Source§

impl Random for u32

Source§

impl Random for u64

Implementors§