Struct tracing_helpers::formatter::FieldFormatter
source · pub struct FieldFormatter;
Expand description
Field formatter that fixes a few issues with the default formatter:
- Displays the full error source chain, not just the first error.
- Displays unsigned values as hex instead of decimal, improving readability for values that we tend to log in HvLite.
Trait Implementations§
source§impl<'a> FormatFields<'a> for FieldFormatter
impl<'a> FormatFields<'a> for FieldFormatter
source§fn format_fields<R: RecordFields>(
&self,
writer: Writer<'_>,
fields: R,
) -> Result
fn format_fields<R: RecordFields>( &self, writer: Writer<'_>, fields: R, ) -> Result
Format the provided
fields
to the provided [Writer
], returning a result.Auto Trait Implementations§
impl Freeze for FieldFormatter
impl RefUnwindSafe for FieldFormatter
impl Send for FieldFormatter
impl Sync for FieldFormatter
impl Unpin for FieldFormatter
impl UnwindSafe for FieldFormatter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more