Trait puffin::fuzzer::mutations::util::Choosable

source ·
pub trait Choosable<T, R: Rand> {
    // Required methods
    fn choose_filtered<P>(&self, filter: P, rand: &mut R) -> Option<&T>
       where P: FnMut(&&T) -> bool;
    fn choose(&self, rand: &mut R) -> Option<&T>;
}

Required Methods§

source

fn choose_filtered<P>(&self, filter: P, rand: &mut R) -> Option<&T>
where P: FnMut(&&T) -> bool,

source

fn choose(&self, rand: &mut R) -> Option<&T>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, R: Rand> Choosable<T, R> for Vec<T>

source§

fn choose_filtered<P>(&self, filter: P, rand: &mut R) -> Option<&T>
where P: FnMut(&&T) -> bool,

source§

fn choose(&self, rand: &mut R) -> Option<&T>

Implementors§