ai_descriptor

Trait SetNameWithHistory

Source
pub trait SetNameWithHistory: SetName + NameHistory {
    // Provided method
    fn set_name_with_history(&mut self, name: &str) -> Result<(), NameError> { ... }
}
Expand description

Trait for setting the name while maintaining a history of changes.

Provided Methods§

Source

fn set_name_with_history(&mut self, name: &str) -> Result<(), NameError>

Sets the name and records the change in the name history.

Implementors§