Skip to main content

to_sval_writer_with_config

Function to_sval_writer_with_config 

Source
pub fn to_sval_writer_with_config<'sval, S: Stream<'sval> + ?Sized>(
    stream: &mut S,
    value: &'sval Value,
    config: &SvalConfig,
) -> Result
Expand description

to_sval_writer with caller-supplied knobs.

The configured coercions are applied as a thin wrapper on top of the raw sval::Value impl — every non-Value::Number event is forwarded unchanged.

§Errors

Returns the underlying [sval::Error] from the stream implementation.