Struct elipdotter::query::Hit
source · pub struct Hit { /* private fields */ }
Expand description
An occurrence returned from Query
.
Implementations§
source§impl Hit
impl Hit
sourcepub fn start(&self) -> usize
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.
sourcepub fn occurrence(&self) -> &Occurence
pub fn occurrence(&self) -> &Occurence
Get a reference to the hit’s occurrence.
sourcepub fn occurrences(&self) -> impl Iterator<Item = AssociatedOccurrence> + '_
pub fn occurrences(&self) -> impl Iterator<Item = AssociatedOccurrence> + '_
Self::occurrence
and all associated occurrences.
Trait Implementations§
source§impl From<&Hit> for AssociatedOccurrence
impl From<&Hit> for AssociatedOccurrence
source§impl Ord for Hit
impl Ord for Hit
source§impl PartialEq<Hit> for Hit
impl PartialEq<Hit> for Hit
source§impl PartialOrd<Hit> for Hit
impl PartialOrd<Hit> for Hit
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more