[][src]Trait ress::tokens::IdentExt

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

Required methods

fn matches(&self, other: &T) -> bool

fn as_str(&self) -> &str

Loading content...

Implementors

impl IdentExt<String> for Ident<String>[src]

impl<'a> IdentExt<str> for Ident<&'a str>[src]

Loading content...