Skip to main content

View

Trait View 

Source
pub trait View {
    // Required method
    fn stringify(&self) -> String;
}
Expand description

Trait used to expose custom display methods.

Required Methods§

Source

fn stringify(&self) -> String

Returns a stringified version of self.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<'a, T: AsRef<[Token<'a>]>> View for T