pub struct Lines(pub Vec<Spans>);Expand description
Multiple lines of text with a variety of styles.
Each Spans element in the inner Vec is considered a line. Components that
accept multiple lines of text should accept Lines. Components that accept single
lines of text should accept Spans.
Lines implement From<S: Into<Spans>>, making it easy to pass values of
many types such as Spans, Span, String and &str.
Note: The implementation of From<S: Into<Spans>> for Lines automatically
splits on newlines (\n). If you do not want this behavior, then construct
Lines directly.
Tuple Fields§
§0: Vec<Spans>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lines
impl RefUnwindSafe for Lines
impl Send for Lines
impl Sync for Lines
impl Unpin for Lines
impl UnwindSafe for Lines
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