Skip to main content

scan_one

Function scan_one 

Source
pub fn scan_one<'a>(
    s: &'a [u8],
    f: impl FnMut(&Iterator<'a>) -> bool,
) -> (&'a [u8], Option<Error>)
Expand description

Scan one JSON value from the start of s, calling f for each encountered value. Returns (remaining, Option<Error>).