Struct ucglib::ast::SelectorList
[−]
[src]
pub struct SelectorList {
pub head: Box<Expression>,
pub tail: Option<Vec<Token>>,
}An Expression with a series of symbols specifying the key with which to descend into the result of the expression.
The expression must evaluate to either a tuple or an array. The token must evaluate to either a bareword Symbol or an Int.
let foo = { bar = "a thing" };
let thing = foo.bar;
let arr = ["one", "two"];
let first = arr.0;
let berry = {best = "strawberry", unique = "acai"}.best;
let third = ["uno", "dos", "tres"].1;
'''
Fields
head: Box<Expression>
tail: Option<Vec<Token>>
Methods
impl SelectorList[src]
Trait Implementations
impl Debug for SelectorList[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for SelectorList[src]
fn eq(&self, __arg_0: &SelectorList) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SelectorList) -> bool[src]
This method tests for !=.
impl Clone for SelectorList[src]
fn clone(&self) -> SelectorList[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more