Enum conch_parser::ast::SimpleWord [] [src]

pub enum SimpleWord<L, P, S> {
    Literal(L),
    Escaped(L),
    Param(P),
    Subst(S),
    Star,
    Question,
    SquareOpen,
    SquareClose,
    Tilde,
    Colon,
}

Represents the smallest fragment of any text.

Generic over the representation of a literals, parameters, and substitutions.

Variants

A non-special literal word.

A token which normally has a special meaning is treated as a literal because it was escaped, typically with a backslash, e.g. \".

Access of a value inside a parameter, e.g. $foo or $$.

A parameter substitution, e.g. ${param-word}.

Represents *, useful for handling pattern expansions.

Represents ?, useful for handling pattern expansions.

Represents [, useful for handling pattern expansions.

Represents ], useful for handling pattern expansions.

Represents ~, useful for handling tilde expansions.

Represents :, useful for handling tilde expansions.

Trait Implementations

impl<L: Debug, P: Debug, S: Debug> Debug for SimpleWord<L, P, S>
[src]

Formats the value using the given formatter.

impl<L: PartialEq, P: PartialEq, S: PartialEq> PartialEq for SimpleWord<L, P, S>
[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, P: Eq, S: Eq> Eq for SimpleWord<L, P, S>
[src]

impl<L: Clone, P: Clone, S: Clone> Clone for SimpleWord<L, P, S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more