Crate sval_buffer

Source
Expand description

Buffering support for sval.

This crate provides the ValueBuf type, which can buffer a flat stream of data into a tree of borrowed values.

Some functionality requires the alloc Cargo feature to be enabled. Rather than conditionally compile these methods, this library stubs out functionality when an allocator isn’t available.

Structs§

BinaryBuf
Buffer binary fragments into a single contiguous slice.
Error
An error encountered buffering data.
TextBuf
Buffer text fragments into a single contiguous string.
Value
An immutable buffered value.
ValueBuf
Buffer arbitrary values into a tree-like structure.

Functions§

stream_to_value
Buffer a value.
stream_to_value_owned
Buffer an owned value.