Skip to main content

select_excerpt

Function select_excerpt 

Source
pub fn select_excerpt(
    query: &QueryBundle,
    selectors: &[String],
) -> Result<QueryExcerpt, ProjectionError>
Expand description

Select tldr, document-root content, or complete section subtrees by path or ID.

Duplicate selections and descendants of another selected node are omitted. The result always follows source order, independent of argument order.

ยงErrors

Returns an error when no content exists or any selector is empty or unknown.