feat(span): impl From<Atom<'a>> for Atom (#5809)

This commit is contained in:
DonIsaac 2024-09-17 05:46:15 +00:00
parent b5ad518621
commit a5f2e9ac04

View file

@ -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 {