Struct spdlog::formatter::FmtExtraInfo
source · pub struct FmtExtraInfo { /* private fields */ }
Expand description
Extra information for formatted text.
Implementations
sourceimpl 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
sourceimpl Clone for FmtExtraInfo
impl Clone for FmtExtraInfo
sourcefn clone(&self) -> FmtExtraInfo
fn clone(&self) -> FmtExtraInfo
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 moresourceimpl Debug for FmtExtraInfo
impl Debug for FmtExtraInfo
sourceimpl Default for FmtExtraInfo
impl Default for FmtExtraInfo
sourcefn default() -> FmtExtraInfo
fn default() -> FmtExtraInfo
Returns the “default value” for a type. Read more
sourceimpl Hash for FmtExtraInfo
impl Hash for FmtExtraInfo
sourceimpl PartialEq<FmtExtraInfo> for FmtExtraInfo
impl PartialEq<FmtExtraInfo> for FmtExtraInfo
sourcefn eq(&self, other: &FmtExtraInfo) -> bool
fn eq(&self, other: &FmtExtraInfo) -> bool
impl Eq for FmtExtraInfo
impl StructuralEq for FmtExtraInfo
impl StructuralPartialEq for FmtExtraInfo
Auto Trait Implementations
impl RefUnwindSafe for FmtExtraInfo
impl Send for FmtExtraInfo
impl Sync for FmtExtraInfo
impl Unpin for FmtExtraInfo
impl UnwindSafe for FmtExtraInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more