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
sourceimpl 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
sourceimpl Clone for FmtExtraInfoBuilder
impl Clone for FmtExtraInfoBuilder
sourcefn clone(&self) -> FmtExtraInfoBuilder
fn clone(&self) -> FmtExtraInfoBuilder
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 FmtExtraInfoBuilder
impl Debug for FmtExtraInfoBuilder
sourceimpl Default for FmtExtraInfoBuilder
impl Default for FmtExtraInfoBuilder
sourcefn default() -> FmtExtraInfoBuilder
fn default() -> FmtExtraInfoBuilder
Returns the “default value” for a type. Read more
sourceimpl Hash for FmtExtraInfoBuilder
impl Hash for FmtExtraInfoBuilder
sourceimpl PartialEq<FmtExtraInfoBuilder> for FmtExtraInfoBuilder
impl PartialEq<FmtExtraInfoBuilder> for FmtExtraInfoBuilder
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &FmtExtraInfoBuilder) -> bool
fn ne(&self, other: &FmtExtraInfoBuilder) -> bool
This method tests for !=.
impl Eq for FmtExtraInfoBuilder
impl StructuralEq for FmtExtraInfoBuilder
impl StructuralPartialEq for FmtExtraInfoBuilder
Auto Trait Implementations
impl RefUnwindSafe for FmtExtraInfoBuilder
impl Send for FmtExtraInfoBuilder
impl Sync for FmtExtraInfoBuilder
impl Unpin for FmtExtraInfoBuilder
impl UnwindSafe for FmtExtraInfoBuilder
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