pub trait Converter<Input, Output> {
// Required method
fn convert(&self, value: Input) -> Output;
// Provided method
fn batch_convert(&self, values: &[Input]) -> Vec<Output>
where Input: Clone { ... }
}Required Methods§
Provided Methods§
fn batch_convert(&self, values: &[Input]) -> Vec<Output>where
Input: Clone,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".