pub struct Probe<'t> { /* private fields */ }Expand description
A term being looked up in a section, read once: its group and, for a text literal, the parts its order is made of.
TermOrder::cmp reads both of its terms on every call: for two text
literals that is the group of each (a UTF-8 check and a scan for the
closing quote) and then their parts again. A lookup compares one term
against a few dozen stored ones in every section it searches, so it read
the term it was looking for a few hundred times: a BIND that made
195,000 new strings spent five times as long finding out they were new as
it did on a byte-ordered file. Probe::cmp_stored is the same order
with the looked-up side read once and the stored side read at most once.
Implementations§
Auto Trait Implementations§
impl<'t> Forget for Probe<'t>
impl<'t> Freeze for Probe<'t>
impl<'t> Move for Probe<'t>
impl<'t> RefUnwindSafe for Probe<'t>
impl<'t> Send for Probe<'t>
impl<'t> Sync for Probe<'t>
impl<'t> Unpin for Probe<'t>
impl<'t> UnsafeUnpin for Probe<'t>
impl<'t> UnwindSafe for Probe<'t>
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