Moulins f93c6b2cb0 feat: Add SmolStr::from_static
Allows creating `SmolStr`s longer than 23 bytes in constant
contexts.

This is done by replacing the `Repr::Substring` variant by a more
general `Repr::Static(&'static str)` variant, and borrowing from ̀`WS`
directly instead of storing two `usize`s.

As a bonus, it also simplifies the `as_str` implementation, hopefully
saving an extra branch.
2024-01-11 15:45:38 +01:00
Description
A Rust compiler front-end for IDEs
332 MiB
Languages
Rust 96.8%
HTML 1.6%
TypeScript 1.5%