Enum dynparser::parser::atom::Atom

source ·
pub enum Atom {
    Literal(String),
    Match(MatchRules),
    Error(String),
    Dot,
    EOF,
}
Expand description

This is a minimum expression element

Variants§

§

Literal(String)

Literal string

§

Match(MatchRules)

Character matches a list of chars or a list of ranges

§

Error(String)

Indicates an error. It will propagate an error while processing

§

Dot

Any char

§

EOF

End Of File

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.