Skip to main content

KeyedRandomOf

Trait KeyedRandomOf 

Source
pub trait KeyedRandomOf<K, T>: Clone {
    type Output;

    // Required method
    fn random_of(&self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn random_of(&self) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<K, T> KeyedRandomOf<K, T> for HashMap<K, T>
where T: Clone, K: Hash + Clone,

Source§

type Output = T

Source§

fn random_of(&self) -> Self::Output

Implementors§