Trait WithExamples

Source
pub trait WithExamples: Sized + Serialize {
    // Provided method
    fn examples() -> Vec<Example<Self>> { ... }
}

Provided Methods§

Source

fn examples() -> Vec<Example<Self>>

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§