Skip to main content

ExampleProvider

Trait ExampleProvider 

Source
pub trait ExampleProvider: Send + Sync {
    // Required method
    fn examples(&self) -> Vec<Example>;
}
Expand description

Trait for providing examples dynamically.

Required Methods§

Source

fn examples(&self) -> Vec<Example>

Get the examples to inject.

Implementors§