Skip to main content

Token

Trait Token 

Source
pub trait Token: Eq + PartialEq {
    // Required method
    fn display<'a>(&'a self, config: &'a Config) -> impl Display + 'a;
}
Expand description

Tokens that are streamable.

Required Methods§

Source

fn display<'a>(&'a self, config: &'a Config) -> impl Display + 'a

Returns a displayable version of the token.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§