Struct ucglib::ast::tree::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

Methods

impl SelectorList
[src]

[src]

Returns a stringified version of a SelectorList.

Trait Implementations

impl Debug for SelectorList
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for SelectorList
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for SelectorList
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for SelectorList

impl Sync for SelectorList