Crate sval_fmt

Source
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§

DebugToValue
Adapt a fmt::Debug into an sval::Value.
DisplayToValue
Adapt a fmt::Display into an sval::Value.
ToFmt
Adapt an sval::Value into a fmt::Debug or fmt::Display.

Traits§

TokenWrite
A token-aware fmt::Write.

Functions§

stream_debug
Stream a fmt::Debug into an sval::Stream.
stream_display
Stream a fmt::Display into an sval::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.