pub struct ScreenLineView { /* private fields */ }Expand description
Read-only copy of one absolute screen line for copy-mode consumers.
Implementations§
Source§impl ScreenLineView
impl ScreenLineView
Sourcepub fn cells(&self) -> &[ScreenCellView]
pub fn cells(&self) -> &[ScreenCellView]
Returns the stored cells for the line.
Sourcepub fn cell(&self, x: u32) -> Option<&ScreenCellView>
pub fn cell(&self, x: u32) -> Option<&ScreenCellView>
Returns one cell by column.
Sourcepub const fn start_prompt(&self) -> bool
pub const fn start_prompt(&self) -> bool
Returns whether the line starts a shell prompt block.
Sourcepub const fn start_output(&self) -> bool
pub const fn start_output(&self) -> bool
Returns whether the line starts a shell output block.
Sourcepub fn owning_cell_x(&self, x: u32) -> Option<u32>
pub fn owning_cell_x(&self, x: u32) -> Option<u32>
Resolves the owning non-padding cell for a column.
Trait Implementations§
Source§impl Clone for ScreenLineView
impl Clone for ScreenLineView
Source§fn clone(&self) -> ScreenLineView
fn clone(&self) -> ScreenLineView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScreenLineView
impl Debug for ScreenLineView
Source§impl PartialEq for ScreenLineView
impl PartialEq for ScreenLineView
Source§fn eq(&self, other: &ScreenLineView) -> bool
fn eq(&self, other: &ScreenLineView) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ScreenLineView
impl StructuralPartialEq for ScreenLineView
Auto Trait Implementations§
impl Freeze for ScreenLineView
impl RefUnwindSafe for ScreenLineView
impl Send for ScreenLineView
impl Sync for ScreenLineView
impl Unpin for ScreenLineView
impl UnsafeUnpin for ScreenLineView
impl UnwindSafe for ScreenLineView
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