pub struct ReSequence(/* private fields */);
Expand description
ReSequence is the sequence of regex_automata::Regex (can be either single-pattern or multiple-pattern) that can be utilized in a timeline /series of matching events. Its method matching_indices provide vector data for including Naive Bayers Classifiers in future.
Implementations§
Source§impl ReSequence
impl ReSequence
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Construct a new, empty ReSequence
The Regex vector as resequence’s field 0 will not be allocated in initialization
Sourcepub fn iter(&self) -> Iter<'_, Regex>
pub fn iter(&self) -> Iter<'_, Regex>
Returns an iterator over the slice.
The iterator yields all items from start to end
Sourcepub fn iter_mut(&mut self) -> IterMut<'_, Regex>
pub fn iter_mut(&mut self) -> IterMut<'_, Regex>
Returns an iterator that allows modifying each value. The iterator yields all items from start to end.
Sourcepub fn pop(&mut self) -> Option<Regex>
pub fn pop(&mut self) -> Option<Regex>
Removes the last element from a vector and returns it, or None if it is empty.
Trait Implementations§
Source§impl Clone for ReSequence
impl Clone for ReSequence
Source§fn clone(&self) -> ReSequence
fn clone(&self) -> ReSequence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ReSequence
impl Debug for ReSequence
Source§impl FromIterator<Regex> for ReSequence
Create a value from an iterator.
impl FromIterator<Regex> for ReSequence
Create a value from an iterator.
Source§impl IntoIterator for ReSequence
The method that converts ReSequence into an Iterator, which works with for
syntax.
impl IntoIterator for ReSequence
The method that converts ReSequence into an Iterator, which works with for
syntax.
Auto Trait Implementations§
impl Freeze for ReSequence
impl RefUnwindSafe for ReSequence
impl Send for ReSequence
impl Sync for ReSequence
impl Unpin for ReSequence
impl UnwindSafe for ReSequence
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
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>
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>
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