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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Random for bool

source§

fn random() -> Self

source§

impl Random for char

source§

fn random() -> Self

source§

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

source§

impl Random for f32

source§

fn random() -> Self

source§

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

source§

impl Random for f64

source§

fn random() -> Self

source§

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

source§

impl Random for i32

source§

fn random() -> Self

source§

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

source§

impl Random for i64

source§

fn random() -> Self

source§

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

source§

impl Random for isize

source§

fn random() -> Self

source§

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

source§

impl Random for u8

source§

fn random() -> Self

source§

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

source§

impl Random for u32

source§

fn random() -> Self

source§

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

source§

impl Random for u64

source§

fn random() -> Self

source§

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

source§

impl Random for usize

source§

fn random() -> Self

source§

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

source§

impl Random for String

source§

fn random() -> Self

source§

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

source§

fn random() -> Self

source§

fn random_count(count: usize) -> Self

Implementors§