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]
impl SelectorListTrait Implementations
impl PartialEq for SelectorList[src]
impl PartialEq for SelectorListfn eq(&self, other: &SelectorList) -> bool[src]
fn eq(&self, other: &SelectorList) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SelectorList) -> bool[src]
fn ne(&self, other: &SelectorList) -> boolThis method tests for !=.
impl Clone for SelectorList[src]
impl Clone for SelectorListfn clone(&self) -> SelectorList[src]
fn clone(&self) -> SelectorListReturns 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 Debug for SelectorList[src]
impl Debug for SelectorListfn fmt(&self, w: &mut Formatter) -> Result[src]
fn fmt(&self, w: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for SelectorList[src]
impl Display for SelectorListAuto Trait Implementations
impl Send for SelectorList
impl Send for SelectorListimpl Sync for SelectorList
impl Sync for SelectorList