Struct ress::Ident [−][src]
pub struct Ident(_);
An identifier
let js = "var x = 1;"; let mut s = Scanner::new(js); let _var = s.next().unwrap(); assert_eq!(s.next().unwrap().token, Token::Ident(Ident::from("x"))); let _assign = s.next().unwrap(); let _one = s.next().unwrap();
Trait Implementations
impl Debug for Ident
[src]
impl Debug for Ident
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Ident
[src]
impl PartialEq for Ident
fn eq(&self, other: &Ident) -> bool
[src]
fn eq(&self, other: &Ident) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Ident) -> bool
[src]
fn ne(&self, other: &Ident) -> bool
This method tests for !=
.
impl Clone for Ident
[src]
impl Clone for Ident
fn clone(&self) -> Ident
[src]
fn clone(&self) -> Ident
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> PartialEq<&'a str> for Ident
[src]
impl<'a> PartialEq<&'a str> for Ident
fn eq(&self, other: &&'a str) -> bool
[src]
fn eq(&self, other: &&'a str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl PartialEq<str> for Ident
[src]
impl PartialEq<str> for Ident
fn eq(&self, other: &str) -> bool
[src]
fn eq(&self, other: &str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<'a> From<&'a str> for Ident
[src]
impl<'a> From<&'a str> for Ident
impl From<String> for Ident
[src]
impl From<String> for Ident
impl ToString for Ident
[src]
impl ToString for Ident
impl Into<String> for Ident
[src]
impl Into<String> for Ident