[][src]Trait kas::class::HasStr

pub trait HasStr {
    pub fn get_str(&self) -> &str;

    pub fn get_string(&self) -> String { ... }
}

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

pub fn get_str(&self) -> &str[src]

Get text by reference

Loading content...

Provided methods

pub fn get_string(&self) -> String[src]

Get text as a String

Loading content...

Implementors

impl<D: Directional, W: Menu> HasStr for SubMenu<D, W>[src]

impl<G: EditGuard> HasStr for EditBox<G>[src]

impl<M: Clone + Debug + 'static> HasStr for MenuEntry<M>[src]

impl<M: Clone + Debug + 'static> HasStr for TextButton<M>[src]

impl<T: FormattableText + 'static> HasStr for Label<T>[src]

impl<W: HasStr + Widget> HasStr for Frame<W>[src]

impl<W: HasStr + Widget> HasStr for MenuFrame<W>[src]

Loading content...