pub struct Line {
pub spans: Vec<Span>,
pub alignment: Option<Alignment>,
}Expand description
A single line of styled text, composed of multiple Spans.
Fields§
§spans: Vec<Span>§alignment: Option<Alignment>Implementations§
Source§impl Line
impl Line
Trait Implementations§
Source§impl Stylize for Line
impl Stylize for Line
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 Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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