Enum reproto_semver::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]

[src]

Check if the current token is a whitespace token.

[src]

Check if the current token is a wildcard token.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

[src]

This method tests for !=.

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

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

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>