Skip to main content

RandomBit

Trait RandomBit 

Source
pub trait RandomBit {
    // Required method
    fn random() -> Self;
}

Required Methods§

Source

fn random() -> 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 RandomBit for bool

Source§

fn random() -> Self

Implementors§