Skip to main content

fold_name_str

Function fold_name_str 

Source
pub fn fold_name_str<'new, 'src>(
    name: NameStr<'_, 'src>,
    arena: &'new Bump,
) -> NameStr<'new, 'src>
Expand description

Moves a NameStr into the output arena of a fold: a string borrowed from the source stays borrowed, an arena string is copied into arena. Use it when overriding a fold method that rebuilds names, variables or strings.