pub struct ConsoleBuilder { /* private fields */ }Expand description
Builder for constructing a Console with custom options.
Implementations§
Source§impl ConsoleBuilder
impl ConsoleBuilder
Sourcepub fn color_system(self, cs: &str) -> Self
pub fn color_system(self, cs: &str) -> Self
Set the color system by name ("standard", "256", "truecolor", "windows").
Sourcepub fn force_terminal(self, f: bool) -> Self
pub fn force_terminal(self, f: bool) -> Self
Force or prevent terminal detection regardless of the actual environment.
Sourcepub fn color_system_override(self, cs: ColorSystem) -> Self
pub fn color_system_override(self, cs: ColorSystem) -> Self
Explicitly override the color system, taking priority over both
environment variables and the string-based color_system method.
Sourcepub fn soft_wrap(self, sw: bool) -> Self
pub fn soft_wrap(self, sw: bool) -> Self
Enable or disable soft wrapping (allows lines to exceed terminal width).
Trait Implementations§
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