Skip to content

Commit fdfdc9d

Browse files
committed
Add prefilter() function to dense DFA
1 parent ab88aa5 commit fdfdc9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

regex-automata/src/dfa/dense.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5151,3 +5151,10 @@ mod tests {
51515151
assert_eq!(Err(expected), got);
51525152
}
51535153
}
5154+
5155+
impl<T> DFA<T> {
5156+
/// Set or unset the prefilter attached to this DFA.
5157+
pub fn prefilter(&mut self, prefilter: Option<Prefilter>) {
5158+
self.pre = prefilter
5159+
}
5160+
}

0 commit comments

Comments
 (0)