#[derive(Debug)]
pub struct Identifier<'src>(pub(crate) &'src str);
impl Identifier<'_> {
pub fn as_str(&self) -> &str {
self.0
}
}
impl PartialEq for Identifier<'_> {
fn eq(&self, other: &Self) -> bool {
self.0.eq_ignore_ascii_case(other.0)
}
}
impl PartialEq<str> for Identifier<'_> {
fn eq(&self, other: &str) -> bool {
self.0.eq_ignore_ascii_case(other)
}
}