ValueGeneratorBase

Trait ValueGeneratorBase 

Source
pub trait ValueGeneratorBase<R: Randomizer + ?Sized, T> {
    // Required method
    fn parse(input: &str) -> Result<T, BuildError>;

    // Provided method
    fn build_selectable(
        chars: Option<String>,
        values: Option<Vec<DataValue>>,
        filepath: Option<PathBuf>,
    ) -> Result<Vec<T>, BuildError> { ... }
}
Expand description

Base trait for a generator from input values

Required Methods§

Source

fn parse(input: &str) -> Result<T, BuildError>

Function of parser the input value

Provided Methods§

Source

fn build_selectable( chars: Option<String>, values: Option<Vec<DataValue>>, filepath: Option<PathBuf>, ) -> Result<Vec<T>, BuildError>

Build selectable value

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§