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§
sourcefn set_string(&mut self, text: String) -> Action
fn set_string(&mut self, text: String) -> Action
Set text from a string