Trait kas_core::class::HasStr

source ·
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§

Get text by reference

Provided Methods§

Get text as a String

Implementors§