Struct regex_automata::hybrid::dfa::SearchProgress
source · struct SearchProgress {
start: usize,
at: usize,
}
Expand description
Keeps track of the progress of the current search.
This is updated via the Cache::search_{start,update,finish}
APIs to
record how many bytes have been searched. This permits computing a
heuristic that represents the efficiency of a cache, and thus helps inform
whether the lazy DFA should give up or not.
Fields§
§start: usize
§at: usize
Implementations§
Trait Implementations§
source§impl Clone for SearchProgress
impl Clone for SearchProgress
source§fn clone(&self) -> SearchProgress
fn clone(&self) -> SearchProgress
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SearchProgress
impl RefUnwindSafe for SearchProgress
impl Send for SearchProgress
impl Sync for SearchProgress
impl Unpin for SearchProgress
impl UnwindSafe for SearchProgress
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