pub fn to_sval_writer<'sval, S: Stream<'sval> + ?Sized>(
stream: &mut S,
value: &'sval Value,
) -> ResultExpand description
Stream a Value into a writer that implements
[sval::Stream].
Convenience wrapper around the [sval::Value] impl on
Value: just calls value.stream(stream). Useful as a
named entry point so call sites read as
noyalib::sval_adapter::to_sval_writer(&mut stream, &value).
Pair with to_sval_writer_with_config to coerce non-finite
floats (NaN, ±∞) into Null before emission — required for
downstream sval consumers that reject non-finites
(sval_json is the canonical example).
§Errors
Returns the underlying [sval::Error] from the stream
implementation.