Skip to main content

decode_stream_sync

Function decode_stream_sync 

Source
pub fn decode_stream_sync(
    lines: impl IntoIterator<Item = String>,
    options: Option<DecodeStreamOptions>,
) -> Vec<JsonStreamEvent>
Expand description

Decode TOON lines into a stream of events.

ยงPanics

Panics if decoding fails due to malformed input or strict-mode validation errors. Use try_decode_stream_sync for a fallible version that returns Result.