#[repr(C)]pub struct TerminalSelectWordBetweenOptions {
pub size: usize,
pub start: GridRef,
pub end: GridRef,
pub boundary_codepoints: *const u32,
pub boundary_codepoints_len: usize,
}Expand description
Options for deriving the nearest word selection between two grid references.
This is a sized struct. Use GHOSTTY_INIT_SIZED() to initialize it. If boundary_codepoints is NULL and boundary_codepoints_len is 0, Ghostty’s default word-boundary codepoints are used. If boundary_codepoints_len is non-zero, boundary_codepoints must not be NULL.
Fields§
§size: usizeSize of this struct in bytes. Must be set to sizeof(GhosttyTerminalSelectWordBetweenOptions).
start: GridRefStarting grid reference for the inclusive search range.
end: GridRefEnding grid reference for the inclusive search range.
boundary_codepoints: *const u32Optional word-boundary codepoints as uint32_t scalar values.
boundary_codepoints_len: usizeNumber of entries in boundary_codepoints.
Trait Implementations§
Source§impl Clone for TerminalSelectWordBetweenOptions
impl Clone for TerminalSelectWordBetweenOptions
Source§fn clone(&self) -> TerminalSelectWordBetweenOptions
fn clone(&self) -> TerminalSelectWordBetweenOptions
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 moreimpl Copy for TerminalSelectWordBetweenOptions
Auto Trait Implementations§
impl !Send for TerminalSelectWordBetweenOptions
impl !Sync for TerminalSelectWordBetweenOptions
impl Freeze for TerminalSelectWordBetweenOptions
impl RefUnwindSafe for TerminalSelectWordBetweenOptions
impl Unpin for TerminalSelectWordBetweenOptions
impl UnsafeUnpin for TerminalSelectWordBetweenOptions
impl UnwindSafe for TerminalSelectWordBetweenOptions
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