Trait rtools::Random

source ·
pub trait Random<T = Self>: Sized {
    // Provided methods
    fn random() -> Self { ... }
    fn random_count(_: usize) -> Self { ... }
    fn random_in(_: Range<Self>) -> Self { ... }
}

Provided Methods§

source

fn random() -> Self

source

fn random_count(_: usize) -> Self

source

fn random_in(_: Range<Self>) -> Self

Implementations on Foreign Types§

source§

impl<T: Random> Random<T> for Vec<T>

source§

fn random() -> Self

source§

fn random_count(count: usize) -> Self

source§

impl Random<u8> for u8

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

source§

impl Random<char> for char

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

source§

impl Random<bool> for bool

source§

fn random() -> Self

source§

impl Random<isize> for isize

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

source§

impl Random<f32> for f32

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

source§

impl Random<f64> for f64

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

source§

impl Random<u64> for u64

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

source§

impl Random<usize> for usize

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

source§

impl Random<u32> for u32

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

source§

impl Random<i64> for i64

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

source§

impl Random<String> for String

source§

fn random() -> Self

source§

impl Random<i32> for i32

source§

fn random() -> Self

source§

fn random_in(range: Range<Self>) -> Self

Implementors§