Skip to main content

normalize_into

Function normalize_into 

Source
pub fn normalize_into<'a>(
    tokens: &'a [Token],
    literals: LiteralNorm,
    out: &mut Vec<NormToken<'a>>,
)
Expand description

normalize into a caller-owned buffer.

The buffer is cleared first. Callers normalizing millions of fragments reuse one buffer instead of allocating a vector per fragment.