Enum conch_parser::ast::Word [] [src]

pub enum Word<L, W> {
    Simple(W),
    DoubleQuoted(Vec<W>),
    SingleQuoted(L),
}

Represents whitespace delimited single, double, or non quoted text.

Generic over the representation of single-quoted literals, and non-quoted words.

Variants

A regular word.

List of words concatenated within double quotes.

List of words concatenated within single quotes. Virtually identical as a literal, but makes a distinction between the two.

Trait Implementations

impl<L: Debug, W: Debug> Debug for Word<L, W>
[src]

Formats the value using the given formatter.

impl<L: PartialEq, W: PartialEq> PartialEq for Word<L, W>
[src]

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

This method tests for !=.

impl<L: Eq, W: Eq> Eq for Word<L, W>
[src]

impl<L: Clone, W: Clone> Clone for Word<L, W>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more