mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
feat(span): impl From<Atom<'a>> for Atom (#5809)
This commit is contained in:
parent
b5ad518621
commit
a5f2e9ac04
1 changed files with 6 additions and 0 deletions
|
|
@ -98,6 +98,12 @@ impl<'a> From<&'a str> for Atom<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Atom<'a>> for &'a str {
|
||||
fn from(s: Atom<'a>) -> Self {
|
||||
s.as_str()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Atom<'a>> for CompactStr {
|
||||
#[inline]
|
||||
fn from(val: Atom<'a>) -> Self {
|
||||
|
|
|
|||
Loading…
Reference in a new issue