Trait IdentExt
ress::tokens
pub trait IdentExt<T> where T: ?Sized, { fn matches(&self, other: &T) -> bool; fn as_str(&self) -> &str; }
Extention methods for allowing Ident to work with both &str and String
fn matches(&self, other: &T) -> bool
fn as_str(&self) -> &str
impl IdentExt<String> for Ident<String>
fn matches(&self, other: &String) -> bool
impl<'a> IdentExt<str> for Ident<&'a str>
fn matches(&self, other: &str) -> bool