pub struct StaticParser;
Expand description

Segment parser to generate static route matchers.

Trait Implementations

Parser implementation for the static matcher.

Parses out a static matcher from a segment literal.

Note that although this returns a result, it will never fail as every string literal can be treated as a static matcher.

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.