elipdotter::query

Struct Query

source
pub struct Query { /* private fields */ }
Expand description

A query.

This is just a root Part.

Use parse to create one. You can also use the std::str::FromStr implementation.

Implementations§

source§

impl Query

source

pub fn root(&self) -> &Part

Get a reference to the root node of the query.

source

pub fn documents<'a, 'b, P: Provider<'a>>( &'b self, provider: &'a P, ) -> Documents<'a, 'b, P>

source

pub fn occurrences<'a>( &'a self, provider: &'a impl OccurenceProvider<'a>, distance_threshold: usize, ) -> Result<impl