Struct tagua_parser::ast::Variable [] [src]

pub struct Variable<'a>(pub &'a [u8]);

A variable.

Examples

use tagua_parser::Result;
use tagua_parser::ast::Variable;
use tagua_parser::rules::tokens::variable;

assert_eq!(
    variable(b"$foo"),
    Result::Done(&b""[..], Variable(&b"foo"[..]))
);

Note that the $ is not present.

Trait Implementations

impl<'a> Debug for Variable<'a>
[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Variable<'a>
[src]

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

This method tests for !=.