Crate sval_nested

Source
Expand description

A variant of sval::Stream for cases where a recursive API is needed.

§Limitations

Streaming via sval_nested will discard any sval::Stream::tag_hints. sval allows tag hints to appear anywhere in a stream, but this library enforces a stricter lifecycle, making those hints unreliable.

Modules§

default_stream
Default method implementations for the Stream trait.

Structs§

Error
An error encountered buffering data.
Ref
Adapt an sval::Value into a ValueRef.
Unsupported
A placeholder for a kind of value that isn’t supported by a particular stream.

Traits§

Stream
A recursive variant of sval::Stream.
StreamEnum
A stream for an enum.
StreamMap
A stream for a map.
StreamRecord
A stream for a record.
StreamSeq
A stream for a sequence.
StreamTuple
A stream for a tuple.
ValueRef
A producer of structured data that stores a reference internally.

Functions§

stream
Stream a value through a stream.
stream_computed
Stream a value through a stream with an arbitrarily short lifetime.
stream_ref
Stream a value through a stream.

Type Aliases§

Result
A generic streaming result.