Skip to main content

ArbitraryWith

Trait ArbitraryWith 

Source
pub trait ArbitraryWith<'a, C>: Sized {
    // Required method
    fn arbitrary_with_config(
        u: &mut Unstructured<'a>,
        config: &C,
    ) -> Result<Self>;
}
Expand description

Trait for generating arbitrary values with a caller-provided configuration.

Required Methods§

Source

fn arbitrary_with_config(u: &mut Unstructured<'a>, config: &C) -> Result<Self>

Generate an arbitrary value using the provided configuration.

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§