Trait kas::classes::HasStr

source ·
pub trait HasStr {
    // Required method
    fn get_str(&self) -> &str;

    // Provided method
    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§

source

fn get_str(&self) -> &str

Get text by reference

Provided Methods§

source

fn get_string(&self) -> String

Get text as a String

Implementors§

source§

impl HasStr for AccessLabel

source§

impl HasStr for Tab

source§

impl<A, T> HasStr for ScrollText<A, T>
where T: Default + FormattableText + 'static,

source§

impl<A, W> HasStr for MapAny<A, W>
where W: Widget<Data = ()> + HasStr,

source§

impl<Data> HasStr for SubMenu<Data>

source§

impl<G> HasStr for EditBox<G>
where G: EditGuard,

source§

impl<G> HasStr for EditField<G>
where G: EditGuard,

source§

impl<M> HasStr for MenuEntry<M>
where M: Clone + Debug + 'static,

source§

impl<T> HasStr for Label<T>
where T: FormattableText + 'static,

source§

impl<T> HasStr for ScrollLabel<T>
where T: FormattableText + 'static,

source§

impl<W> HasStr for Reserve<W>
where W: Widget + HasStr,

source§

impl<W> HasStr for Button<W>
where W: Widget + HasStr,

source§

impl<W> HasStr for Frame<W>
where W: Widget + HasStr,

source§

impl<W> HasStr for NavFrame<W>
where W: Widget + HasStr,

source§

impl<W> HasStr for ScrollBarRegion<W>
where W: Widget + HasStr,

source§

impl<W> HasStr for ScrollBars<W>
where W: Scrollable + Widget + HasStr,

source§

impl<W> HasStr for ScrollRegion<W>
where W: Widget + HasStr,