Displayable

Trait Displayable 

Source
pub trait Displayable: Sized {
    // Required method
    fn display(&self) -> Displayer<'_, Self>;
}
Expand description

A mechanism to render a value that implements fmt::Display in templates.

Required Methods§

Source

fn display(&self) -> Displayer<'_, Self>

Extension method for types that implement fmt::Display

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§