pub trait StringRep {
// Required methods
fn str_rep(&self) -> &'static str;
fn string_rep(&self) -> String;
}
Expand description
A simple trait for allowing the use of representing something as a string in an easy and extendible way.
Required Methods§
Sourcefn string_rep(&self) -> String
fn string_rep(&self) -> String
Customised representation addressing the individual part of the implamented trait. If there is none, it is allowed to fall back to StringRep::str_rep.