Struct slog_term::TermDecoratorBuilder
source · pub struct TermDecoratorBuilder { /* private fields */ }
Expand description
TermDecorator
builder
Implementations§
source§impl TermDecoratorBuilder
impl TermDecoratorBuilder
sourcepub fn force_color(self) -> Self
pub fn force_color(self) -> Self
Force colored output
sourcepub fn force_plain(self) -> Self
pub fn force_plain(self) -> Self
Force plain output
sourcepub fn try_build(self) -> Option<TermDecorator>
pub fn try_build(self) -> Option<TermDecorator>
Try to build TermDecorator
Unlike build
this will not fall-back to raw stdout
/stderr
if it wasn’t able to use terminal and its features directly
(eg. if TERM
env. was not set).
sourcepub fn build(self) -> TermDecorator
pub fn build(self) -> TermDecorator
Build TermDecorator
Unlike try_build
this it will fall-back to using plain stdout
/stderr
if it wasn’t able to use terminal directly.
Auto Trait Implementations§
impl RefUnwindSafe for TermDecoratorBuilder
impl Send for TermDecoratorBuilder
impl Sync for TermDecoratorBuilder
impl Unpin for TermDecoratorBuilder
impl UnwindSafe for TermDecoratorBuilder
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