Skip to main content

intern_short_string

Function intern_short_string 

Source
pub fn intern_short_string(s: Arc<String>) -> Arc<String>
Expand description

Return the canonical Arc<String> for s if s is short enough to intern; otherwise return s unchanged. Callers should always use the returned Arc — it may be a different (shared) pointer than the input.