[][src]Module combine::parser::item

Parsers working with single stream items.

Structs

Any
Eof
NoneOf
OneOf
Position
Satisfy
SatisfyMap
Token
Tokens
Tokens2
Value

Functions

any

Parses any token.

eof

Succeeds only if the stream is at end of input, fails otherwise.

item

Parses a character and succeeds if the character is equal to c.

none_of

Extract one token and succeeds if it is not part of tokens.

one_of

Extract one token and succeeds if it is part of tokens.

position

Parser which just returns the current position in the stream.

satisfy

Parses a token and succeeds depending on the result of predicate.

satisfy_map

Parses a token and passes it to predicate. If predicate returns Some the parser succeeds and returns the value inside the Option. If predicate returns None the parser fails without consuming any input.

token

Parses a character and succeeds if the character is equal to c.

tokens

Parses multiple tokens.

tokens2

Parses multiple tokens.

value

Always returns the value v without consuming any input.