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]

Formats the value using the given formatter. Read more

impl PartialEq for Ident
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Ident
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialEq<str> for Ident
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

impl From<String> for Ident
[src]

Performs the conversion.

impl ToString for Ident
[src]

Converts the given value to a String. Read more

impl Into<String> for Ident
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Ident

impl Sync for Ident