pub trait NameHistory {
// Required methods
fn add_name_to_history(&mut self, name: &str);
fn name_history(&self) -> Vec<Cow<'_, str>>;
}Expand description
Provides a history of names an item has had.
Required Methods§
Sourcefn add_name_to_history(&mut self, name: &str)
fn add_name_to_history(&mut self, name: &str)
Adds a name to the history.
Sourcefn name_history(&self) -> Vec<Cow<'_, str>>
fn name_history(&self) -> Vec<Cow<'_, str>>
Returns the history of names.