[][src]Module notedown_ast::utils

Modules

iter

Joinery iterator and related types and traits

join

Core join type and related traits

prelude

The joinery prelude

separators

0-size types for common separators

Macros

lazy_format

Lazily format something. Essentially the same as format!, except that instead of formatting its arguments to a string, it captures them in an opaque struct, which can be formatted later. This allows you to build up formatting operations without any intermediary allocations or extra formatting calls. Also supports lazy conditional and looping constructs.

Structs

Join

The primary data structure for representing a joined sequence.

JoinIter

An iterator for a Join.

Enums

JoinItem

Enum representing the elements of a JoinIter.

TextError

Traits

Joinable

A trait for converting collections into Join instances.

JoinableIterator

A trait for converting Iterators into Join instances or JoinIter iterators.

Separator

A trait for using a separator to produce a Join.

Functions

capitalize_first_letter
dedent

Removes common leading whitespace from each line.

dedent_less_than

Removes at most n leading whitespace from each line

indent

Adds spaces to each non-empty line.

indent_count
indent_with

Adds prefix to each non-empty line.

markdown_parse
unescape

Takes in a string with backslash escapes written out with literal backslash characters and converts it to a string with the proper escaped characters.

unescape_dec_chars

unescape \u{xx xx xx}

unescape_hex_chars

unescape \U{xx xx xx}

unescape_only
unescape_unchecked

unchecked version of unescape

unescape_utf8
url_decode
url_encode