Trait kas::classes::HasString

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

source

fn set_string(&mut self, text: String) -> Action

Set text from a string

Provided Methods§

source

fn set_str(&mut self, text: &str) -> Action

Set text from a &str

This is a convenience method around set_string(text.to_string()).

Implementors§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<W> HasString for ScrollBars<W>

source§

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