Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions for rendering.

Enums§

FilterMatch
Classification describing how a filter string matches a path.

Constants§

GAP_MARKER
Standard gap marker line used to indicate skipped items.

Functions§

dedup_gap_markers
Collapse consecutive gap markers to a single instance.
ends_with_gap
Check whether the current output already ends with a gap marker (ignoring indentation).
escape_path
Escape reserved keywords in a path by adding raw identifier prefixes when needed.
extract_source
Extract source code from a file based on span information.
must_get
Retrieve an item from the crate index, panicking if it is missing.
ppush
Append name to a path prefix using :: separators.
starts_with_gap
Check whether the output already starts with a gap marker (ignoring indentation and leading blank lines).