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
Source§fn clone(&self) -> RuntimeOptionPatch
fn clone(&self) -> RuntimeOptionPatch
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 RuntimeOptionPatch
Source§impl Debug for RuntimeOptionPatch
impl Debug for RuntimeOptionPatch
Source§impl Default for RuntimeOptionPatch
impl Default for RuntimeOptionPatch
Source§fn default() -> RuntimeOptionPatch
fn default() -> RuntimeOptionPatch
Returns the “default value” for a type. Read more
impl Eq for RuntimeOptionPatch
Source§impl PartialEq for RuntimeOptionPatch
impl PartialEq for RuntimeOptionPatch
Source§fn eq(&self, other: &RuntimeOptionPatch) -> bool
fn eq(&self, other: &RuntimeOptionPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.