https://github.com/search?q=user%3AKisaragiEffective%20language%3ARust%20%2F%5C.to_string%5C(%5C)%5C.into_boxed_str%5C(%5C)%2F&type=code From: `s.to_string().into_boxed_str()` for context Captures: `s: &str` To: `Box::from(s)` Applicable: where expecting typed as `Box<str>`