Example

Trait Example 

Source
pub trait Example<'a> {
    // Required method
    fn example(self, example: &'a str) -> Self;
}
Expand description

Add an example message to an object.

Required Methods§

Source

fn example(self, example: &'a str) -> Self

Consumes and returns self combined with the given example message.

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.

Implementations on Foreign Types§

Source§

impl<'a, T, E> Example<'a> for Result<T, HintedError<'a, E>>
where E: Display + Send + Sync,

Implementation of Example on any Results returned by hint

Source§

fn example(self, example: &'a str) -> Self

Implementors§