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§
- Binary
Buf - 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.
- Value
Buf - Buffer arbitrary values into a tree-like structure.
Functions§
- stream_
to_ value - Buffer a value.
- stream_
to_ value_ owned - Buffer an owned value.