Struct scrunch::ReferenceDocument
source · pub struct ReferenceDocument { /* private fields */ }
Trait Implementations§
source§impl Document for ReferenceDocument
impl Document for ReferenceDocument
type Search = IntoIter<TextOffset>
fn construct<H: Helper>( text: Vec<u32>, record_boundaries: Vec<usize>, builder: &mut Builder<'_, H> ) -> Result<(), Error>
fn len(&self) -> usize
fn records(&self) -> usize
fn search(&self, needle: &[u32]) -> Result<Self::Search, Error>
fn count(&self, needle: &[u32]) -> Result<usize, Error>
fn lookup(&self, offset: TextOffset) -> Result<RecordOffset, Error>
fn retrieve(&self, record: RecordOffset) -> Result<Vec<u32>, Error>
fn offset_of(&self, record: RecordOffset) -> Result<TextOffset, Error>
fn is_empty(&self) -> bool
source§impl<'a> Unpackable<'a> for ReferenceDocument
impl<'a> Unpackable<'a> for ReferenceDocument
Auto Trait Implementations§
impl RefUnwindSafe for ReferenceDocument
impl Send for ReferenceDocument
impl Sync for ReferenceDocument
impl Unpin for ReferenceDocument
impl UnwindSafe for ReferenceDocument
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