Enum alloc::str::pattern::SearchStep [−][src]
pub enum SearchStep { Match(usize, usize), Reject(usize, usize), Done, }
🔬 This is a nightly-only experimental API. (pattern
#27721)
API not fully fleshed out and ready to be stabilized
Expand description
调用 Searcher::next()
或 ReverseSearcher::next_back()
的结果。
Variants
🔬 This is a nightly-only experimental API. (pattern
#27721)
API not fully fleshed out and ready to be stabilized
表示已在 haystack[a..b]
找到匹配的模式。
🔬 This is a nightly-only experimental API. (pattern
#27721)
API not fully fleshed out and ready to be stabilized
表示已拒绝 haystack[a..b]
作为该模式的可能匹配。
注意,两个 Match
之间可能有多个 Reject
,不需要将它们组合为一个。
🔬 This is a nightly-only experimental API. (pattern
#27721)
API not fully fleshed out and ready to be stabilized
表示已访问 haystack 的每个字节,从而结束了迭代。