pub(crate) struct Builder {
target: Target,
write_style: WriteStyle,
is_test: bool,
built: bool,
}
Expand description
A builder for a terminal writer.
The target and style choice can be configured before building.
Fields§
§target: Target
§write_style: WriteStyle
§is_test: bool
§built: bool
Implementations§
source§impl Builder
impl Builder
sourcepub(crate) fn parse_write_style(&mut self, write_style: &str) -> &mut Self
pub(crate) fn parse_write_style(&mut self, write_style: &str) -> &mut Self
Parses a style choice string.
See the Disabling colors section for more details.
sourcepub(crate) fn write_style(&mut self, write_style: WriteStyle) -> &mut Self
pub(crate) fn write_style(&mut self, write_style: WriteStyle) -> &mut Self
Whether or not to print style characters when writing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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