pub struct Text {
pub lines: Vec<Line>,
pub style: Style,
pub alignment: Option<Alignment>,
}Expand description
Multi-line styled text.
Fields§
§lines: Vec<Line>§style: Style§alignment: Option<Alignment>Implementations§
Trait Implementations§
Source§impl<T: Into<Line>> FromIterator<T> for Text
impl<T: Into<Line>> FromIterator<T> for Text
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl Stylize for Text
impl Stylize for Text
fn style(self, style: Style) -> Self
fn red(self) -> Self
fn green(self) -> Self
fn yellow(self) -> Self
fn blue(self) -> Self
fn magenta(self) -> Self
fn cyan(self) -> Self
fn white(self) -> Self
fn gray(self) -> Self
fn on_red(self) -> Self
fn on_green(self) -> Self
fn on_yellow(self) -> Self
fn on_blue(self) -> Self
fn on_magenta(self) -> Self
fn on_cyan(self) -> Self
fn on_white(self) -> Self
fn bold(self) -> Self
fn dim(self) -> Self
fn italic(self) -> Self
fn underlined(self) -> Self
fn reversed(self) -> Self
fn crossed_out(self) -> Self
impl Eq for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more