Type Alias DefaultSimpleWord

Source
pub type DefaultSimpleWord = SimpleWord<String, DefaultParameter, Box<DefaultParameterSubstitution>>;
Expand description

Type alias for the default SimpleWord representation.

Aliased Type§

pub enum DefaultSimpleWord {
    Literal(String),
    Escaped(String),
    Param(Parameter<String>),
    Subst(Box<ParameterSubstitution<Parameter<String>, TopLevelWord<String>, TopLevelCommand<String>, Arithmetic<String>>>),
    Star,
    Question,
    SquareOpen,
    SquareClose,
    Tilde,
    Colon,
}

Variants§

§

Literal(String)

A non-special literal word.

§

Escaped(String)

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

§

Param(Parameter<String>)

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

§

Subst(Box<ParameterSubstitution<Parameter<String>, TopLevelWord<String>, TopLevelCommand<String>, Arithmetic<String>>>)

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

§

Star

Represents *, useful for handling pattern expansions.

§

Question

Represents ?, useful for handling pattern expansions.

§

SquareOpen

Represents [, useful for handling pattern expansions.

§

SquareClose

Represents ], useful for handling pattern expansions.

§

Tilde

Represents ~, useful for handling tilde expansions.

§

Colon

Represents :, useful for handling tilde expansions.