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 OpenVMM.
Trait Implementations§
Source§impl FormatFields<'_> for FieldFormatter
impl FormatFields<'_> 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 UnsafeUnpin 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