Expand description
Treat any sval::Value as a core::fmt::Debug.
This crate provides ToFmt, a wrapper around any sval::Value
that formats it using the same output that you’d get if you
derived core::fmt::Debug.
Modules§
- tags
- Tags for fragments of formatted values.
Structs§
- Debug
ToValue - Adapt a
fmt::Debuginto ansval::Value. - Display
ToValue - Adapt a
fmt::Displayinto ansval::Value. - ToFmt
- Adapt an
sval::Valueinto afmt::Debugorfmt::Display.
Traits§
- Token
Write - A token-aware
fmt::Write.
Functions§
- stream_
debug - Stream a
fmt::Debuginto ansval::Stream. - stream_
display - Stream a
fmt::Displayinto ansval::Stream. - stream_
to_ fmt - Format a value into an underlying formatter.
- stream_
to_ string - Format a value into a string.
- stream_
to_ token_ write - Format a value into an underlying token-aware formatter.
- stream_
to_ write - Format a value into an underlying formatter.