Rando

Trait Rando 

Source
pub trait Rando:
    Get
    + Len
    + HasMapData
where Self::Key: PartialEq,
{ // Required method fn rand_iter(&self) -> RandIter<'_, Self> ; }
Expand description

A trait for collections over which this library allows one to iterate in random order.

Required Methods§

Source

fn rand_iter(&self) -> RandIter<'_, Self>

Returns an iterator that iterates over this collection in random order.

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.

Implementors§

Source§

impl<T> Rando for T
where T: Get + Len + HasMapData + ?Sized, T::Key: PartialEq,