pub struct RuntimeOptionPatch {
pub cursor_style: Option<CursorStyle>,
pub cursor_blink: Option<bool>,
pub scrollback_lines: Option<u32>,
pub tab_width: Option<u8>,
pub convert_eol: Option<bool>,
pub screen_reader_mode: Option<bool>,
pub bracketed_paste: Option<bool>,
pub minimum_contrast_ratio_x100: Option<u16>,
pub renderer: Option<RendererType>,
pub theme: Option<ThemePalette>,
}Expand description
A sparse patch: every field is independently Some(_) to mutate or None to
leave untouched. Mirrors assigning to a subset of xterm.js term.options.
Fields§
§cursor_style: Option<CursorStyle>§cursor_blink: Option<bool>§scrollback_lines: Option<u32>§tab_width: Option<u8>§convert_eol: Option<bool>§screen_reader_mode: Option<bool>§bracketed_paste: Option<bool>§minimum_contrast_ratio_x100: Option<u16>§renderer: Option<RendererType>§theme: Option<ThemePalette>Implementations§
Source§impl RuntimeOptionPatch
impl RuntimeOptionPatch
Sourcepub const fn with_cursor_style(self, v: CursorStyle) -> Self
pub const fn with_cursor_style(self, v: CursorStyle) -> Self
Builder: set cursor style.
Sourcepub const fn with_scrollback_lines(self, v: u32) -> Self
pub const fn with_scrollback_lines(self, v: u32) -> Self
Builder: set scrollback retention.
Sourcepub const fn with_tab_width(self, v: u8) -> Self
pub const fn with_tab_width(self, v: u8) -> Self
Builder: set tab width.
Sourcepub const fn with_screen_reader_mode(self, v: bool) -> Self
pub const fn with_screen_reader_mode(self, v: bool) -> Self
Builder: set screen-reader mode.
Sourcepub const fn with_minimum_contrast_ratio_x100(self, v: u16) -> Self
pub const fn with_minimum_contrast_ratio_x100(self, v: u16) -> Self
Builder: set minimum contrast ratio ×100.
Sourcepub const fn with_renderer(self, v: RendererType) -> Self
pub const fn with_renderer(self, v: RendererType) -> Self
Builder: set renderer backend.
Sourcepub const fn with_theme(self, v: ThemePalette) -> Self
pub const fn with_theme(self, v: ThemePalette) -> Self
Builder: set theme palette.
Trait Implementations§
Source§impl Clone for RuntimeOptionPatch
impl Clone for RuntimeOptionPatch
impl Copy for RuntimeOptionPatch
Source§impl Debug for RuntimeOptionPatch
impl Debug for RuntimeOptionPatch
Source§impl Default for RuntimeOptionPatch
impl Default for RuntimeOptionPatch
impl Eq for RuntimeOptionPatch
Source§impl PartialEq for RuntimeOptionPatch
impl PartialEq for RuntimeOptionPatch
impl StructuralPartialEq for RuntimeOptionPatch
Auto Trait Implementations§
impl Freeze for RuntimeOptionPatch
impl RefUnwindSafe for RuntimeOptionPatch
impl Send for RuntimeOptionPatch
impl Sync for RuntimeOptionPatch
impl Unpin for RuntimeOptionPatch
impl UnsafeUnpin for RuntimeOptionPatch
impl UnwindSafe for RuntimeOptionPatch
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