Struct spdlog::formatter::FmtExtraInfoBuilder
source · pub struct FmtExtraInfoBuilder { /* private fields */ }Expand description
The builder of FmtExtraInfo.
Examples
See the implementation of FullFormatter and ./examples directory.
Implementations§
source§impl FmtExtraInfoBuilder
impl FmtExtraInfoBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Constructs a FmtExtraInfoBuilder.
The default value of FmtExtraInfo is the same as
FmtExtraInfo::new.
sourcepub fn style_range(self, range: Range<usize>) -> Self
pub fn style_range(self, range: Range<usize>) -> Self
Sets style range (in bytes) of the formatted text.
Users must ensure that indexes are correctly UTF-8 boundary.
sourcepub fn build(self) -> FmtExtraInfo
pub fn build(self) -> FmtExtraInfo
Builds a FmtExtraInfo.
Trait Implementations§
source§impl Clone for FmtExtraInfoBuilder
impl Clone for FmtExtraInfoBuilder
source§fn clone(&self) -> FmtExtraInfoBuilder
fn clone(&self) -> FmtExtraInfoBuilder
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 FmtExtraInfoBuilder
impl Debug for FmtExtraInfoBuilder
source§impl Default for FmtExtraInfoBuilder
impl Default for FmtExtraInfoBuilder
source§fn default() -> FmtExtraInfoBuilder
fn default() -> FmtExtraInfoBuilder
Returns the “default value” for a type. Read more
source§impl Hash for FmtExtraInfoBuilder
impl Hash for FmtExtraInfoBuilder
source§impl PartialEq<FmtExtraInfoBuilder> for FmtExtraInfoBuilder
impl PartialEq<FmtExtraInfoBuilder> for FmtExtraInfoBuilder
source§fn eq(&self, other: &FmtExtraInfoBuilder) -> bool
fn eq(&self, other: &FmtExtraInfoBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.