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::Debug
into ansval::Value
. - Display
ToValue - Adapt a
fmt::Display
into ansval::Value
. - ToFmt
- Adapt an
sval::Value
into afmt::Debug
orfmt::Display
.
Traits§
- Token
Write - A token-aware
fmt::Write
.
Functions§
- stream_
debug - Stream a
fmt::Debug
into ansval::Stream
. - stream_
display - Stream a
fmt::Display
into 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.