Struct spdlog::terminal_style::StyleBuilder
source · pub struct StyleBuilder { /* private fields */ }Expand description
The builder of Style.
Implementations§
source§impl StyleBuilder
impl StyleBuilder
sourcepub fn new() -> StyleBuilder
👎Deprecated since 0.3.0: it may be removed in the future, use Style::builder() instead
pub fn new() -> StyleBuilder
Style::builder() insteadConstructs a StyleBuilder.
pub fn reset(&mut self) -> &mut StyleBuilder
pub fn color(&mut self, color: Color) -> &mut StyleBuilder
pub fn bg_color(&mut self, bg_color: Color) -> &mut StyleBuilder
pub fn bold(&mut self) -> &mut StyleBuilder
pub fn faint(&mut self) -> &mut StyleBuilder
pub fn italic(&mut self) -> &mut StyleBuilder
pub fn underline(&mut self) -> &mut StyleBuilder
pub fn slow_blink(&mut self) -> &mut StyleBuilder
pub fn rapid_blink(&mut self) -> &mut StyleBuilder
pub fn invert(&mut self) -> &mut StyleBuilder
pub fn conceal(&mut self) -> &mut StyleBuilder
pub fn strikethrough(&mut self) -> &mut StyleBuilder
Trait Implementations§
source§impl Clone for StyleBuilder
impl Clone for StyleBuilder
source§fn clone(&self) -> StyleBuilder
fn clone(&self) -> StyleBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for StyleBuilder
impl Debug for StyleBuilder
source§impl Hash for StyleBuilder
impl Hash for StyleBuilder
source§impl PartialEq<StyleBuilder> for StyleBuilder
impl PartialEq<StyleBuilder> for StyleBuilder
source§fn eq(&self, other: &StyleBuilder) -> bool
fn eq(&self, other: &StyleBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.