pub fn flatten_to_record<'sval>(
    stream: &mut (impl Stream<'sval> + ?Sized),
    value: &'sval (impl Value + ?Sized),
    offset: isize
) -> Result<isize>
Expand description

Flatten the fields of a value onto a record.

The offset is the current length of the record. A new offset will be returned with the length of the record after flattening the value.