Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(span): add
Atom::r#static
(#8479)
This allows ```rs const TYPEOF_UNDEFINED: Atom<'static> = Atom::r#static("undefined"); #[derive(Clone, Copy)] enum Value<'a> { /// Not `Atom<'a>`, which takes one more byte StringLiteral(&'a Atom<'a>), // ... } fn get_typeof<'a>(value: Value<'a>) -> Value<'a> { if ... { return Value::StringLiteral(&TYPEOF_UNDEFINED); } } ```
- Loading branch information