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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§