Trait peroxide::util::wrapper::SampleRNG

source ·
pub trait SampleRNG {
    type Item;

    // Required method
    fn sample(&self, n: usize) -> Vec<Self::Item>;
}
Expand description

Extract no-duplicate sample from Vector

Required Associated Types§

Required Methods§

source

fn sample(&self, n: usize) -> Vec<Self::Item>

Implementations on Foreign Types§

source§

impl SampleRNG for String

source§

type Item = char

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl SampleRNG for Vec<char>

source§

type Item = char

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl SampleRNG for Vec<f32>

source§

type Item = f32

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl SampleRNG for Vec<f64>

source§

type Item = f64

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl SampleRNG for Vec<i32>

source§

type Item = i32

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl SampleRNG for Vec<i64>

source§

type Item = i64

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl SampleRNG for Vec<isize>

source§

type Item = isize

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl SampleRNG for Vec<u32>

source§

type Item = u32

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl SampleRNG for Vec<u64>

source§

type Item = u64

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl SampleRNG for Vec<usize>

source§

type Item = usize

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

source§

impl<'a> SampleRNG for Vec<&'a str>

source§

type Item = &'a str

source§

fn sample(&self, n: usize) -> Vec<Self::Item>

Implementors§