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> PartialEq for Variable<'a>
[src]
fn eq(&self, __arg_0: &Variable<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Variable<'a>) -> bool
This method tests for !=
.