#[repr(C)]pub struct TerminalSelectLineOptions {
pub size: usize,
pub ref_: GridRef,
pub whitespace: *const u32,
pub whitespace_len: usize,
pub semantic_prompt_boundary: bool,
}Expand description
Options for deriving a line selection from a terminal grid reference.
This is a sized struct. Use GHOSTTY_INIT_SIZED() to initialize it. If whitespace is NULL and whitespace_len is 0, Ghostty’s default line-trim whitespace codepoints are used. If whitespace_len is non-zero, whitespace must not be NULL.
Fields§
§size: usizeSize of this struct in bytes. Must be set to sizeof(GhosttyTerminalSelectLineOptions).
ref_: GridRefGrid reference under which to derive the line selection.
whitespace: *const u32Optional codepoints to trim from the start and end of the line.
whitespace_len: usizeNumber of entries in whitespace.
semantic_prompt_boundary: boolWhether semantic prompt state changes should bound the line selection.
Trait Implementations§
Source§impl Clone for TerminalSelectLineOptions
impl Clone for TerminalSelectLineOptions
Source§fn clone(&self) -> TerminalSelectLineOptions
fn clone(&self) -> TerminalSelectLineOptions
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 TerminalSelectLineOptions
Source§impl Debug for TerminalSelectLineOptions
impl Debug for TerminalSelectLineOptions
Auto Trait Implementations§
impl !Send for TerminalSelectLineOptions
impl !Sync for TerminalSelectLineOptions
impl Freeze for TerminalSelectLineOptions
impl RefUnwindSafe for TerminalSelectLineOptions
impl Unpin for TerminalSelectLineOptions
impl UnsafeUnpin for TerminalSelectLineOptions
impl UnwindSafe for TerminalSelectLineOptions
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