Skip to main content

text_into_owned

Function text_into_owned 

Source
pub fn text_into_owned(text: Text<'_>) -> Text<'static>
Expand description

Deep-clone text so every span owns its string data. Used by the browser to cache the rendered body across event-loop ticks.