Struct scopegraphs::DynamicMatcher
source · pub struct DynamicMatcher<'a> { /* private fields */ }Expand description
Matched regular expressions that are compiled at runtime.
Trait Implementations§
source§impl<'a> Clone for DynamicMatcher<'a>
impl<'a> Clone for DynamicMatcher<'a>
source§fn clone(&self) -> DynamicMatcher<'a>
fn clone(&self) -> DynamicMatcher<'a>
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 moresource§impl<'a> RegexMatcher<&'a str> for DynamicMatcher<'_>
impl<'a> RegexMatcher<&'a str> for DynamicMatcher<'_>
source§fn step(&mut self, inp: &'a str)
fn step(&mut self, inp: &'a str)
Takes a transition in the state machine, accepting a single symbol. Read more
source§fn is_accepting(&self) -> bool
fn is_accepting(&self) -> bool
Returns whether the current state would accept the regular expression.
source§fn step_many(&mut self, inp: impl IntoIterator<Item = A>)
fn step_many(&mut self, inp: impl IntoIterator<Item = A>)
Steps once for each element in the iterator
source§fn step_unless_empty(&mut self, inp: impl IntoIterator<Item = A>)
fn step_unless_empty(&mut self, inp: impl IntoIterator<Item = A>)
Steps once for each element in the iterator
source§fn accepts(&self, iter: impl IntoIterator<Item = A>) -> bool
fn accepts(&self, iter: impl IntoIterator<Item = A>) -> bool
Returns true if the regular expression accepts the input iterator
source§fn accepts_prefix(&self, iter: impl IntoIterator<Item = A>) -> bool
fn accepts_prefix(&self, iter: impl IntoIterator<Item = A>) -> bool
Returns true if the regular expression accepts a word of which the input iterator is a prefix
source§impl RegexMatcher<char> for DynamicMatcher<'_>
impl RegexMatcher<char> for DynamicMatcher<'_>
source§fn step(&mut self, inp: char)
fn step(&mut self, inp: char)
Takes a transition in the state machine, accepting a single symbol. Read more
source§fn is_accepting(&self) -> bool
fn is_accepting(&self) -> bool
Returns whether the current state would accept the regular expression.
source§fn step_many(&mut self, inp: impl IntoIterator<Item = A>)
fn step_many(&mut self, inp: impl IntoIterator<Item = A>)
Steps once for each element in the iterator
source§fn step_unless_empty(&mut self, inp: impl IntoIterator<Item = A>)
fn step_unless_empty(&mut self, inp: impl IntoIterator<Item = A>)
Steps once for each element in the iterator
source§fn accepts(&self, iter: impl IntoIterator<Item = A>) -> bool
fn accepts(&self, iter: impl IntoIterator<Item = A>) -> bool
Returns true if the regular expression accepts the input iterator
source§fn accepts_prefix(&self, iter: impl IntoIterator<Item = A>) -> bool
fn accepts_prefix(&self, iter: impl IntoIterator<Item = A>) -> bool
Returns true if the regular expression accepts a word of which the input iterator is a prefix
Auto Trait Implementations§
impl<'a> Freeze for DynamicMatcher<'a>
impl<'a> RefUnwindSafe for DynamicMatcher<'a>
impl<'a> !Send for DynamicMatcher<'a>
impl<'a> !Sync for DynamicMatcher<'a>
impl<'a> Unpin for DynamicMatcher<'a>
impl<'a> UnwindSafe for DynamicMatcher<'a>
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