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
Literal(L)A non-special literal word.
Escaped(L)A token which normally has a special meaning is treated as a literal
because it was escaped, typically with a backslash, e.g. \".
Param(P)Access of a value inside a parameter, e.g. $foo or $$.
Subst(S)A parameter substitution, e.g. ${param-word}.
StarRepresents *, useful for handling pattern expansions.
QuestionRepresents ?, useful for handling pattern expansions.
SquareOpenRepresents [, useful for handling pattern expansions.
SquareCloseRepresents ], useful for handling pattern expansions.
TildeRepresents ~, useful for handling tilde expansions.
ColonRepresents :, useful for handling tilde expansions.
Trait Implementations
impl<L: Debug, P: Debug, S: Debug> Debug for SimpleWord<L, P, S>[src]
impl<L: PartialEq, P: PartialEq, S: PartialEq> PartialEq for SimpleWord<L, P, S>[src]
fn eq(&self, __arg_0: &SimpleWord<L, P, S>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SimpleWord<L, P, S>) -> bool
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]
fn clone(&self) -> SimpleWord<L, P, S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more