pub struct StaticText { /* private fields */ }
Expand description

Static, unfocusable display text. May be formatted.

Examples

use tty_form::Form;
use tty_interface::Style;

let mut form = Form::default();
let mut text = form.add_compound_step().add_static_text();

text.set_text("Hello, world!");
text.set_style(Style::default().set_bold(true));

Implementations

Set the text for this control.

Set the optional style for this control.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.