pub struct OutputBuilder<'a> {
pub output: Output<'a>,
}
Expand description
Builder pattern for constructing Output configurations.
Fields§
§output: Output<'a>
The Output configuration being built.
Implementations§
Source§impl<'a> OutputBuilder<'a>
Implementation of OutputBuilder methods.
impl<'a> OutputBuilder<'a>
Implementation of OutputBuilder methods.
Sourcepub fn new() -> OutputBuilder<'a>
pub fn new() -> OutputBuilder<'a>
Sourcepub fn new_from(output: Output<'a>) -> OutputBuilder<'a>
pub fn new_from(output: Output<'a>) -> OutputBuilder<'a>
Sourcepub fn text(&mut self, text: &'a str) -> &mut OutputBuilder<'a>
pub fn text(&mut self, text: &'a str) -> &mut OutputBuilder<'a>
Sourcepub fn color(&mut self, color: ColorType) -> &mut OutputBuilder<'a>
pub fn color(&mut self, color: ColorType) -> &mut OutputBuilder<'a>
Sourcepub fn bg_color(&mut self, bg_color: ColorType) -> &mut OutputBuilder<'a>
pub fn bg_color(&mut self, bg_color: ColorType) -> &mut OutputBuilder<'a>
Sourcepub fn blod(&mut self, blod: bool) -> &mut OutputBuilder<'a>
pub fn blod(&mut self, blod: bool) -> &mut OutputBuilder<'a>
Sourcepub fn endl(&mut self, endl: bool) -> &mut OutputBuilder<'a>
pub fn endl(&mut self, endl: bool) -> &mut OutputBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for OutputBuilder<'a>
impl<'a> RefUnwindSafe for OutputBuilder<'a>
impl<'a> Send for OutputBuilder<'a>
impl<'a> Sync for OutputBuilder<'a>
impl<'a> Unpin for OutputBuilder<'a>
impl<'a> UnwindSafe for OutputBuilder<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more