binius_core::fiat_shamir::sampling

Trait CanSample

source
pub trait CanSample<T> {
    // Required method
    fn sample(&mut self) -> T;

    // Provided methods
    fn sample_array<const N: usize>(&mut self) -> [T; N] { ... }
    fn sample_vec(&mut self, n: usize) -> Vec<T> { ... }
}

Required Methods§

source

fn sample(&mut self) -> T

Provided Methods§

source

fn sample_array<const N: usize>(&mut self) -> [T; N]

source

fn sample_vec(&mut self, n: usize) -> Vec<T>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, T, U: 'a + CanSample<T> + ?Sized> CanSample<T> for &'a mut U

source§

fn sample(&mut self) -> T

source§

fn sample_array<const N: usize>(&mut self) -> [T; N]

source§

fn sample_vec(&mut self, n: usize) -> Vec<T>

Implementors§

source§

impl<F, Challenger_> CanSample<F> for TranscriptReader<Challenger_>
where F: TowerField, Challenger_: Challenger,

source§

impl<F, Challenger_> CanSample<F> for TranscriptWriter<Challenger_>
where F: TowerField, Challenger_: Challenger,