Skip to main content

TextSection

Trait TextSection 

Source
pub trait TextSection: Component<Mutability = Mutable> + From<String> {
    // Required methods
    fn get_text(&self) -> &str;
    fn get_text_mut(&mut self) -> &mut String;
}
Expand description

Helper trait for using the TextReader and TextWriter system params.

Required Methods§

Source

fn get_text(&self) -> &str

Returns the text for this section.

Source

fn get_text_mut(&mut self) -> &mut String

Returns a mutable reference to the text for this section.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§