Struct spdlog::formatter::FmtExtraInfo
source · pub struct FmtExtraInfo { /* private fields */ }Expand description
Extra information for formatted text.
Implementations§
source§impl FmtExtraInfo
impl FmtExtraInfo
sourcepub fn new() -> FmtExtraInfo
pub fn new() -> FmtExtraInfo
Constructs a FmtExtraInfo.
sourcepub fn builder() -> FmtExtraInfoBuilder
pub fn builder() -> FmtExtraInfoBuilder
Constructs a FmtExtraInfoBuilder.
sourcepub fn style_range(&self) -> Option<Range<usize>>
pub fn style_range(&self) -> Option<Range<usize>>
A style range (in bytes) of the formatted text.
If style is available in the sink, the text in the range will be rendered in the style corresponding to that log message level, otherwise it will be ignored.
Its indexes are guaranteed by the setter to be the correct UTF-8 boundary.
Trait Implementations§
source§impl Clone for FmtExtraInfo
impl Clone for FmtExtraInfo
source§fn clone(&self) -> FmtExtraInfo
fn clone(&self) -> FmtExtraInfo
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 FmtExtraInfo
impl Debug for FmtExtraInfo
source§impl Default for FmtExtraInfo
impl Default for FmtExtraInfo
source§fn default() -> FmtExtraInfo
fn default() -> FmtExtraInfo
Returns the “default value” for a type. Read more
source§impl Hash for FmtExtraInfo
impl Hash for FmtExtraInfo
source§impl PartialEq<FmtExtraInfo> for FmtExtraInfo
impl PartialEq<FmtExtraInfo> for FmtExtraInfo
source§fn eq(&self, other: &FmtExtraInfo) -> bool
fn eq(&self, other: &FmtExtraInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.