Crate unimarkup_inline

Source
Expand description

Crate for lexing and parsing of Unimarkup inline formatted text.

Structs§

Lexer
Lexer of Unimarkup inline formatted text. Generates a stream of Tokens from input.
NestedContent
Nested content of an Inline consisting of multiple other Inline.
Parser
Parser of Unimarkup inline formatting. Implemented as an Iterator, yields one self-contained Unimarkup Inline with every iteration.
PlainContent
Plain content of an Inline consisting of simple text.
Position
Representation of a position in Unimarkup input.
Span
Span used to store information about the space some Token occupies in Unimarkup document.
Token
Token lexed from Unimarkup text.
TokenDelimiters
Delimiters
TokenIterator
Iterator over Unimarkup Tokens, performs the actual lexing.
Tokens
TODO: write docs

Enums§

Inline
Representation of Unimarkup inline-formatted text.
InlineContent
Content of an Inline.
Spacing
Enum representing the spacing surrounding a particular token in Unimarkup document.
TokenKind
The kind of the token found in Unimarkup document.

Constants§

ALIASES
Aliases for the EMOJIS and ARROWS that can be replaced in a Unimarkup text.
ARROWS
ASCII Arrows that can be replaced with their Unicode versions in a Unimarkup text.
EMOJIS
ASCII Emojis that can be replaced with their Unicode versions in a Unimarkup text.

Traits§

ParseInlines
Extension trait for adding Parser implementation for any type that implements Tokenize trait.
Tokenize
Used to create a Unimarkup Lexer over some data structure, most typically over some kind of string, i.e. &str.