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 more
sourceimpl 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
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FmtExtraInfo) -> bool
fn ne(&self, other: &FmtExtraInfo) -> bool
This method tests for !=.
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 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)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more