pub struct RSet(/* private fields */);
Expand description
An RSet
is used to hold documents marked as explicitly relevant to the current search
Useful for generating MSet
and ESet
instances
Implementations§
Source§impl RSet
impl RSet
Sourcepub fn add_document(&mut self, it: impl AsRef<MSetIterator>)
pub fn add_document(&mut self, it: impl AsRef<MSetIterator>)
Add a document to this reference set by way of a Match
Sourcepub fn add_document_by_id(&mut self, id: impl Into<c_uint>)
pub fn add_document_by_id(&mut self, id: impl Into<c_uint>)
Add a document to this reference set by way of a DocId
Sourcepub fn contains(&self, it: impl AsRef<MSetIterator>) -> bool
pub fn contains(&self, it: impl AsRef<MSetIterator>) -> bool
Returns true
if this RSet
contains the document specified by the given Match
Sourcepub fn contains_id(&self, id: impl Into<c_uint>) -> bool
pub fn contains_id(&self, id: impl Into<c_uint>) -> bool
Returns true
if this RSet
contains the document specified by the given id
Sourcepub fn remove_document(&mut self, it: impl AsRef<MSetIterator>)
pub fn remove_document(&mut self, it: impl AsRef<MSetIterator>)
Remove the document specified by the given Match
from this RSet
Sourcepub fn remove_document_by_id(&mut self, id: impl Into<c_uint>)
pub fn remove_document_by_id(&mut self, id: impl Into<c_uint>)
Remove the document specified by the given DocId
from this RSet
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RSet
impl !RefUnwindSafe for RSet
impl !Send for RSet
impl !Sync for RSet
impl Unpin for RSet
impl UnwindSafe for RSet
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