Function mz_repr::strconv::escape_elem
source ยท fn escape_elem<F, E>(buf: &mut F, start: usize)where
F: FormatBuffer,
E: ElementEscaper,
Expand description
Escapes a list, record, or map element in place.
The element must start at start
and extend to the end of the buffer. The
buffer will be resized if escaping is necessary to account for the
additional escape characters.
The needs_escaping
function is used to determine whether an element needs
to be escaped. It is provided with the bytes of each element and should
return whether the element needs to be escaped.