#[repr(C)]pub struct GhosttyFormatterTerminalOptions {
pub size: usize,
pub emit: GhosttyFormatterFormat,
pub unwrap: bool,
pub trim: bool,
pub extra: GhosttyFormatterTerminalExtra,
}Expand description
Options for creating a terminal formatter.
@ingroup formatter
Fields§
§size: usizeSize of this struct in bytes. Must be set to sizeof(GhosttyFormatterTerminalOptions).
emit: GhosttyFormatterFormatOutput format to emit.
unwrap: boolWhether to unwrap soft-wrapped lines.
trim: boolWhether to trim trailing whitespace on non-blank lines.
extra: GhosttyFormatterTerminalExtraExtra terminal state to include in styled output.
Trait Implementations§
Source§impl Clone for GhosttyFormatterTerminalOptions
impl Clone for GhosttyFormatterTerminalOptions
Source§fn clone(&self) -> GhosttyFormatterTerminalOptions
fn clone(&self) -> GhosttyFormatterTerminalOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GhosttyFormatterTerminalOptions
Auto Trait Implementations§
impl Freeze for GhosttyFormatterTerminalOptions
impl RefUnwindSafe for GhosttyFormatterTerminalOptions
impl Send for GhosttyFormatterTerminalOptions
impl Sync for GhosttyFormatterTerminalOptions
impl Unpin for GhosttyFormatterTerminalOptions
impl UnsafeUnpin for GhosttyFormatterTerminalOptions
impl UnwindSafe for GhosttyFormatterTerminalOptions
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