Module parser

Source

Modulesยง

ClosingDelimiter ๐Ÿ”’
Delimiter
Delimiters constants.

Macrosยง

expect ๐Ÿ”’
Used in some fn expect_* methods

Structsยง

BasicParseError
The fundamental parsing errors that can be triggered by built-in parsing routines.
CachedToken ๐Ÿ”’
Delimiters
A set of characters, to be used with the Parser::parse_until* methods.
ParseError
Extensible parse errors that can be encountered by client parsing implementations.
Parser
A CSS parser that borrows its &str input, yields Tokens, and keeps track of nested blocks and functions.
ParserInput
The owned input for a parser.
ParserState
A capture of the internal state of a Parser (including the position within the input), obtained from the Parser::position method.

Enumsยง

BasicParseErrorKind
Details about a BasicParseError
BlockType ๐Ÿ”’
ParseErrorKind
Details of a ParseError
ParseUntilErrorBehavior
When parsing until a given token, sometimes the caller knows that parsing is going to restart at some earlier point, and consuming until we find a top level delimiter is just wasted work.

Functionsยง

consume_until_end_of_block ๐Ÿ”’
parse_nested_block
parse_until_after
parse_until_before