Trait NumberOps

Source
pub trait NumberOps: Num + Clone {
    // Required method
    fn rand(len: usize, rng: &mut impl Rng) -> Vec<Self>
       where Self: Sized;
}

Required Methods§

Source

fn rand(len: usize, rng: &mut impl Rng) -> Vec<Self>
where Self: Sized,

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 NumberOps for f32

Source§

fn rand(len: usize, rng: &mut impl Rng) -> Vec<Self>

Implementors§