pub struct RepeatDetector { /* private fields */ }Expand description
A set of visited parser states used to deduplicate the processing queue.
Implementations§
Source§impl RepeatDetector
impl RepeatDetector
Sourcepub fn is_visited(&self, state: &ParserState) -> bool
pub fn is_visited(&self, state: &ParserState) -> bool
Whether state has already been inserted.
Sourcepub fn insert(&mut self, state: ParserState)
pub fn insert(&mut self, state: ParserState)
Records state as visited.
Trait Implementations§
Source§impl Clone for RepeatDetector
impl Clone for RepeatDetector
Source§impl Debug for RepeatDetector
impl Debug for RepeatDetector
Auto Trait Implementations§
impl Freeze for RepeatDetector
impl RefUnwindSafe for RepeatDetector
impl Send for RepeatDetector
impl Sync for RepeatDetector
impl Unpin for RepeatDetector
impl UnsafeUnpin for RepeatDetector
impl UnwindSafe for RepeatDetector
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more