Snippet

Trait Snippet 

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

Trait for creating short, truncated representations of values for display/debugging

Required Methods§

Source

fn snippet(&self) -> String

Returns a short, truncated representation of the value

Implementations on Foreign Types§

Source§

impl Snippet for str

Source§

fn snippet(&self) -> String

Source§

impl Snippet for String

Source§

fn snippet(&self) -> String

Source§

impl Snippet for Vec<u8>

Source§

fn snippet(&self) -> String

Source§

impl Snippet for [u8]

Source§

fn snippet(&self) -> String

Source§

impl<T: Snippet> Snippet for Option<T>

Source§

fn snippet(&self) -> String

Implementors§