pub struct RepeatPattern {
pub base_token: String,
pub base_matches: Vec<Match>,
pub base_guesses: u64,
pub repeat_count: usize,
}
Expand description
A match based on repeating patterns
Fields
base_token: String
Base token that repeats in the matched pattern.
base_matches: Vec<Match>
Matches for the repeating token.
base_guesses: u64
Estimated number of tries for guessing the repeating token.
repeat_count: usize
Number of repetitions in the matched pattern.
Trait Implementations
sourceimpl Clone for RepeatPattern
impl Clone for RepeatPattern
sourcefn clone(&self) -> RepeatPattern
fn clone(&self) -> RepeatPattern
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RepeatPattern
impl Debug for RepeatPattern
sourceimpl Default for RepeatPattern
impl Default for RepeatPattern
sourcefn default() -> RepeatPattern
fn default() -> RepeatPattern
Returns the “default value” for a type. Read more
sourceimpl PartialEq<RepeatPattern> for RepeatPattern
impl PartialEq<RepeatPattern> for RepeatPattern
sourcefn eq(&self, other: &RepeatPattern) -> bool
fn eq(&self, other: &RepeatPattern) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RepeatPattern) -> bool
fn ne(&self, other: &RepeatPattern) -> bool
This method tests for !=
.
impl StructuralPartialEq for RepeatPattern
Auto Trait Implementations
impl RefUnwindSafe for RepeatPattern
impl Send for RepeatPattern
impl Sync for RepeatPattern
impl Unpin for RepeatPattern
impl UnwindSafe for RepeatPattern
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more