pub struct Line {
pub spans: Vec<Span>,
}Fields§
§spans: Vec<Span>Implementations§
Source§impl Line
impl Line
pub fn new(spans: Vec<Span>) -> Self
pub fn blank() -> Self
pub fn width(&self) -> usize
Sourcepub fn plain(&self) -> String
pub fn plain(&self) -> String
The text as the input wrote it, escape sequences included: for searching and comparing, never for printing.
Sourcepub fn printable(&self) -> String
pub fn printable(&self) -> String
The text safe to write to a terminal: plain through sanitize::text.
Trait Implementations§
impl Eq for Line
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Forget for Line
impl Freeze for Line
impl Move 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