pub struct ScrollbackLine {
pub cells: Vec<Cell>,
pub wrapped: bool,
}Expand description
A single line in the scrollback buffer.
Stores the cells that made up the row when it was evicted from the viewport.
The wrapped flag records whether the line was a soft-wrap continuation of
the previous line (used by reflow on resize).
Fields§
§cells: Vec<Cell>The cells of this line (may be shorter than the viewport width if trailing blanks were trimmed).
wrapped: boolWhether this line was a soft-wrap continuation (as opposed to a hard newline / CR+LF). Used by reflow policies.
Implementations§
Trait Implementations§
Source§impl Clone for ScrollbackLine
impl Clone for ScrollbackLine
Source§fn clone(&self) -> ScrollbackLine
fn clone(&self) -> ScrollbackLine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrollbackLine
impl Debug for ScrollbackLine
Source§impl PartialEq for ScrollbackLine
impl PartialEq for ScrollbackLine
impl Eq for ScrollbackLine
impl StructuralPartialEq for ScrollbackLine
Auto Trait Implementations§
impl Freeze for ScrollbackLine
impl RefUnwindSafe for ScrollbackLine
impl Send for ScrollbackLine
impl Sync for ScrollbackLine
impl Unpin for ScrollbackLine
impl UnwindSafe for ScrollbackLine
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