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§
Sourcefn parse(input: &str) -> Result<T, BuildError>
fn parse(input: &str) -> Result<T, BuildError>
Function of parser the input value
Provided Methods§
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.