pub struct FastFailScanner { /* private fields */ }Expand description
Aho-Corasick DFA による決定論的スクリーニングエンジン。
Implementations§
Source§impl FastFailScanner
impl FastFailScanner
Sourcepub fn new(config: FastFailConfig) -> Self
pub fn new(config: FastFailConfig) -> Self
設定から新規 FastFailScanner を構築する。
Sourcepub fn find_first<'a>(&self, text: &'a str) -> Option<(Match, &'a str)>
pub fn find_first<'a>(&self, text: &'a str) -> Option<(Match, &'a str)>
最初の一致マッチを取得する (デバッグ・検証用)。
Auto Trait Implementations§
impl Freeze for FastFailScanner
impl RefUnwindSafe for FastFailScanner
impl Send for FastFailScanner
impl Sync for FastFailScanner
impl Unpin for FastFailScanner
impl UnsafeUnpin for FastFailScanner
impl UnwindSafe for FastFailScanner
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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