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§
source§impl 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.