pub trait RandomContainer<T>: Sized {
    // Provided methods
    fn random_member(&self) -> &T { ... }
    fn take_random(&mut self) -> T { ... }
}

Provided Methods§

source

fn random_member(&self) -> &T

source

fn take_random(&mut self) -> T

Implementations on Foreign Types§

source§

impl<T> RandomContainer<T> for Vec<T>

source§

fn random_member(&self) -> &T

source§

fn take_random(&mut self) -> T

Implementors§