#[repr(C)]pub struct FormatterTerminalOptions {
pub size: usize,
pub emit: Type,
pub unwrap: bool,
pub trim: bool,
pub extra: FormatterTerminalExtra,
pub selection: *const Selection,
}Expand description
Options for creating a terminal formatter.
Fields§
§size: usizeSize of this struct in bytes. Must be set to sizeof(GhosttyFormatterTerminalOptions).
emit: TypeOutput format to emit.
unwrap: boolWhether to unwrap soft-wrapped lines.
trim: boolWhether to trim trailing whitespace on non-blank lines.
extra: FormatterTerminalExtraExtra terminal state to include in styled output.
selection: *const SelectionOptional selection to restrict output to a range. If NULL, the entire screen is formatted.
Trait Implementations§
Source§impl Clone for FormatterTerminalOptions
impl Clone for FormatterTerminalOptions
Source§fn clone(&self) -> FormatterTerminalOptions
fn clone(&self) -> FormatterTerminalOptions
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 FormatterTerminalOptions
Source§impl Debug for FormatterTerminalOptions
impl Debug for FormatterTerminalOptions
Auto Trait Implementations§
impl !Send for FormatterTerminalOptions
impl !Sync for FormatterTerminalOptions
impl Freeze for FormatterTerminalOptions
impl RefUnwindSafe for FormatterTerminalOptions
impl Unpin for FormatterTerminalOptions
impl UnsafeUnpin for FormatterTerminalOptions
impl UnwindSafe for FormatterTerminalOptions
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