Struct elipdotter::query::Documents
source · pub struct Documents<'a, 'b, P: Provider<'a>> { /* private fields */ }
Expand description
An iterator of documents which matches a Query
.
Implementations§
source§impl<'a, 'b, P: Provider<'a>> Documents<'a, 'b, P>
impl<'a, 'b, P: Provider<'a>> Documents<'a, 'b, P>
sourcepub fn iter(&'a self) -> Result<impl Iterator<Item = Id> + 'a, IterError>
pub fn iter(&'a self) -> Result<impl Iterator<Item = Id> + 'a, IterError>
§Errors
If a Part::Not
isn’t associated with a Part::And
, IterError::StrayNot
is
returned.
This is due to a limitation of the index architecture used by this library, and almost all other search engines.
sourcepub fn take_proximate_map(&mut self) -> ProximateMap<'b>
pub fn take_proximate_map(&mut self) -> ProximateMap<'b>
The list of proximate words.
This is populated on creation and used in Self::iter
.
Using Self::iter
after calling this will most likely result in a panic.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, P> Freeze for Documents<'a, 'b, P>
impl<'a, 'b, P> RefUnwindSafe for Documents<'a, 'b, P>where
P: RefUnwindSafe,
impl<'a, 'b, P> Send for Documents<'a, 'b, P>where
P: Sync,
impl<'a, 'b, P> Sync for Documents<'a, 'b, P>where
P: Sync,
impl<'a, 'b, P> Unpin for Documents<'a, 'b, P>
impl<'a, 'b, P> UnwindSafe for Documents<'a, 'b, P>where
P: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more