Struct spdlog::terminal_style::StyleBuilder
source · [−]pub struct StyleBuilder { /* private fields */ }Expand description
The builder of Style.
Implementations
sourceimpl StyleBuilder
impl StyleBuilder
sourcepub fn new() -> StyleBuilder
pub fn new() -> StyleBuilder
Constructs 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
sourceimpl Clone for StyleBuilder
impl Clone for StyleBuilder
sourcefn clone(&self) -> StyleBuilder
fn clone(&self) -> StyleBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StyleBuilder
impl Debug for StyleBuilder
sourceimpl Default for StyleBuilder
impl Default for StyleBuilder
sourcefn default() -> StyleBuilder
fn default() -> StyleBuilder
Returns the “default value” for a type. Read more
sourceimpl Hash for StyleBuilder
impl Hash for StyleBuilder
sourceimpl PartialEq<StyleBuilder> for StyleBuilder
impl PartialEq<StyleBuilder> for StyleBuilder
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &StyleBuilder) -> bool
fn ne(&self, other: &StyleBuilder) -> bool
This method tests for !=.
impl Eq for StyleBuilder
impl StructuralEq for StyleBuilder
impl StructuralPartialEq for StyleBuilder
Auto Trait Implementations
impl RefUnwindSafe for StyleBuilder
impl Send for StyleBuilder
impl Sync for StyleBuilder
impl Unpin for StyleBuilder
impl UnwindSafe for StyleBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more