pub struct ConsoleBuilder { /* private fields */ }Expand description
Builder for Console, allowing detection to be overridden.
Implementations§
Source§impl ConsoleBuilder
impl ConsoleBuilder
pub fn force_terminal(self, value: bool) -> Self
Sourcepub fn legacy_windows(self, value: bool) -> Self
pub fn legacy_windows(self, value: bool) -> Self
Force legacy-Windows-console behavior (box substitution). Default off.
Sourcepub fn safe_box(self, value: bool) -> Self
pub fn safe_box(self, value: bool) -> Self
Enable/disable terminal-safe box substitution (default on).
Sourcepub fn ascii_only(self, value: bool) -> Self
pub fn ascii_only(self, value: bool) -> Self
Force ASCII-only box rendering (default off). Set for non-UTF-8 terminals.
Sourcepub fn color_system(self, system: Option<ColorSystem>) -> Self
pub fn color_system(self, system: Option<ColorSystem>) -> Self
Force a specific color system (use for reproducible output/tests).
pub fn width(self, width: usize) -> Self
pub fn no_color(self, value: bool) -> Self
Sourcepub fn emoji(self, value: bool) -> Self
pub fn emoji(self, value: bool) -> Self
Enable/disable :emoji: shortcode replacement (default enabled).
Sourcepub fn highlight(self, value: bool) -> Self
pub fn highlight(self, value: bool) -> Self
Enable/disable automatic repr highlighting. Defaults to on, matching
upstream Console(highlight=True).
pub fn theme(self, theme: Theme) -> Self
pub fn build(self) -> Console
Auto Trait Implementations§
impl Freeze for ConsoleBuilder
impl RefUnwindSafe for ConsoleBuilder
impl Send for ConsoleBuilder
impl Sync for ConsoleBuilder
impl Unpin for ConsoleBuilder
impl UnsafeUnpin for ConsoleBuilder
impl UnwindSafe for ConsoleBuilder
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