pub struct CellQuery { /* private fields */ }
Expand description
Configuration for querying and extracting text from terminal cells.
Defines the selection mode, coordinate range, and text processing options for extracting content from the terminal grid.
Implementations§
Source§impl CellQuery
impl CellQuery
Sourcepub fn start(self, start: (u16, u16)) -> Self
pub fn start(self, start: (u16, u16)) -> Self
Sets the starting position for the selection.
§Arguments
start
- Starting coordinates as (column, row)
Sourcepub fn range(&self) -> Option<((u16, u16), (u16, u16))>
pub fn range(&self) -> Option<((u16, u16), (u16, u16))>
Returns the normalized selection range if both start and end are defined.
The returned range has coordinates ordered so that the first tuple contains the minimum coordinates and the second contains the maximum.
Sourcepub fn trim_trailing_whitespace(self, enabled: bool) -> Self
pub fn trim_trailing_whitespace(self, enabled: bool) -> Self
Configures whether to remove trailing whitespace from each line.
When enabled, spaces at the end of each selected line are removed from the extracted text.
Trait Implementations§
impl Copy for CellQuery
Auto Trait Implementations§
impl Freeze for CellQuery
impl RefUnwindSafe for CellQuery
impl Send for CellQuery
impl Sync for CellQuery
impl Unpin for CellQuery
impl UnwindSafe for CellQuery
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