pub struct Match {
pub i: usize,
pub j: usize,
pub token: String,
pub pattern: MatchPattern,
pub guesses: Option<u64>,
}
Expand description
A match of a predictable pattern in the password.
Fields
i: usize
Beginning of the match.
j: usize
End of the match.
token: String
Token that has been matched.
pattern: MatchPattern
Pattern type and details used to detect this match.
guesses: Option<u64>
Estimated number of tries for guessing the match.
Implementations
sourceimpl Match
impl Match
sourcepub fn range_inclusive(&self) -> RangeInclusive<usize>
pub fn range_inclusive(&self) -> RangeInclusive<usize>
Get the range of the index of the chars that are included in the match.
Trait Implementations
impl StructuralPartialEq for Match
Auto Trait Implementations
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnwindSafe for Match
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