pub trait HasStr {
fn get_str(&self) -> &str;
fn get_string(&self) -> String { ... }
}Expand description
Read an unformatted &str
For write-support, see HasString. Alternatively, for e.g.
Label<&'static str>, the set_text method which may be used, but in
practice this is rarely sufficient.
Required Methods
Provided Methods
sourcefn get_string(&self) -> String
fn get_string(&self) -> String
Get text as a String