pub struct SelectWordOptions<'t, 'bc> { /* private fields */ }Expand description
Options for deriving a word selection from a terminal grid reference.
If with_boundary_codepoints
is not called, Ghostty’s default word-boundary codepoints are used.
Implementations§
Source§impl<'t, 'bc> SelectWordOptions<'t, 'bc>
impl<'t, 'bc> SelectWordOptions<'t, 'bc>
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 word selection, from the given grid reference.
Sourcepub fn with_boundary_codepoints(self, value: &'bc [char]) -> Self
pub fn with_boundary_codepoints(self, value: &'bc [char]) -> Self
Specify the word-boundary codepoints.
Trait Implementations§
Source§impl<'t, 'bc> Clone for SelectWordOptions<'t, 'bc>
impl<'t, 'bc> Clone for SelectWordOptions<'t, 'bc>
Source§fn clone(&self) -> SelectWordOptions<'t, 'bc>
fn clone(&self) -> SelectWordOptions<'t, 'bc>
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, 'bc> !Send for SelectWordOptions<'t, 'bc>
impl<'t, 'bc> !Sync for SelectWordOptions<'t, 'bc>
impl<'t, 'bc> Freeze for SelectWordOptions<'t, 'bc>
impl<'t, 'bc> RefUnwindSafe for SelectWordOptions<'t, 'bc>
impl<'t, 'bc> Unpin for SelectWordOptions<'t, 'bc>
impl<'t, 'bc> UnsafeUnpin for SelectWordOptions<'t, 'bc>
impl<'t, 'bc> UnwindSafe for SelectWordOptions<'t, 'bc>
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