pub struct SelectLineOptions<'t, 'ws> { /* private fields */ }Expand description
Options for deriving a line selection from a terminal grid reference.
If with_whitespace is not called,
Ghostty’s default line-trim whitespace codepoints are used.
Implementations§
Source§impl<'t, 'ws> SelectLineOptions<'t, 'ws>
impl<'t, 'ws> SelectLineOptions<'t, 'ws>
Sourcepub fn new(grid_ref: GridRef<'t>) -> Self
pub fn new(grid_ref: GridRef<'t>) -> Self
Create a new set of options for deriving a line selection, from the given grid reference.
Sourcepub fn with_whitespace(self, value: &'ws [char]) -> Self
pub fn with_whitespace(self, value: &'ws [char]) -> Self
Specify the codepoints to trim from the start and end of the line.
Sourcepub fn with_semantic_prompt_boundary(self, value: bool) -> Self
pub fn with_semantic_prompt_boundary(self, value: bool) -> Self
Specify whether semantic prompt state changes should bound the line selection.
Trait Implementations§
Source§impl<'t, 'ws> Clone for SelectLineOptions<'t, 'ws>
impl<'t, 'ws> Clone for SelectLineOptions<'t, 'ws>
Source§fn clone(&self) -> SelectLineOptions<'t, 'ws>
fn clone(&self) -> SelectLineOptions<'t, 'ws>
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 moreAuto Trait Implementations§
impl<'t, 'ws> !Send for SelectLineOptions<'t, 'ws>
impl<'t, 'ws> !Sync for SelectLineOptions<'t, 'ws>
impl<'t, 'ws> Freeze for SelectLineOptions<'t, 'ws>
impl<'t, 'ws> RefUnwindSafe for SelectLineOptions<'t, 'ws>
impl<'t, 'ws> Unpin for SelectLineOptions<'t, 'ws>
impl<'t, 'ws> UnsafeUnpin for SelectLineOptions<'t, 'ws>
impl<'t, 'ws> UnwindSafe for SelectLineOptions<'t, 'ws>
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