elipdotter::query

Struct Hit

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

An occurrence returned from Query.

Implementations§

source§

impl Hit

source

pub fn id(&self) -> Id

Get a reference to the hit’s document id.

source

pub fn word_id(&self) -> u32

Get a reference to the hit’s word id.

source

pub fn start(&self) -> usize

Get a reference to the hit’s document id.

This might be any of the Self::occurrences if that returns any items.

source

pub fn occurrence(&self) -> &