Enum semver_parser::lexer::Token[][src]

pub enum Token<'input> {
    Eq,
    Gt,
    Lt,
    LtEq,
    GtEq,
    Caret,
    Tilde,
    Star,
    Dot,
    Comma,
    Hyphen,
    Plus,
    Or,
    Whitespace(usizeusize),
    Numeric(u64),
    AlphaNumeric(&'input str),
}

Semver tokens.

Variants

=

>

<

<=

>=

'^`

'~`

'*`

.

,

-

+

'||'

any number of whitespace (\t\r\n) and its span.

Numeric component, like 0 or 42.

Alphanumeric component, like alpha1 or 79deadbe.

Methods

impl<'input> Token<'input>
[src]

Check if the current token is a whitespace token.

Check if the current token is a wildcard token.

Trait Implementations

impl<'input> Debug for Token<'input>
[src]

Formats the value using the given formatter. Read more

impl<'input> PartialEq for Token<'input>
[src]

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

This method tests for !=.

impl<'input> Eq for Token<'input>
[src]

impl<'input> PartialOrd for Token<'input>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'input> Ord for Token<'input>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Auto Trait Implementations

impl<'input> Send for Token<'input>

impl<'input> Sync for Token<'input>