pub trait HasString: HasStr {
    // Required method
    fn set_string(&mut self, text: String) -> Action;

    // Provided method
    fn set_str(&mut self, text: &str) -> Action { ... }
}
Expand description

Read / write an unformatted String

Required Methods§

source

fn set_string(&mut self, text: String) -> Action

Set text from a string

Provided Methods§

source

fn set_str(&mut self, text: &str) -> Action

Set text from a &str

This is a convenience method around set_string(text.to_string()).

Implementors§