Enum rustc_parse_format::str::pattern::SearchStep [−][src]
🔬 This is a nightly-only experimental API. (pattern)
API not fully fleshed out and ready to be stabilized
Expand description
Result of calling Searcher::next() or ReverseSearcher::next_back().
Variants
Match(usize, usize)
Tuple Fields
0: usize🔬 This is a nightly-only experimental API. (pattern)
API not fully fleshed out and ready to be stabilized
1: usize🔬 This is a nightly-only experimental API. (pattern)
API not fully fleshed out and ready to be stabilized
🔬 This is a nightly-only experimental API. (pattern)
API not fully fleshed out and ready to be stabilized
Expresses that a match of the pattern has been found at
haystack[a..b].
Reject(usize, usize)
Tuple Fields
0: usize🔬 This is a nightly-only experimental API. (pattern)
API not fully fleshed out and ready to be stabilized
1: usize🔬 This is a nightly-only experimental API. (pattern)
API not fully fleshed out and ready to be stabilized
🔬 This is a nightly-only experimental API. (pattern)
API not fully fleshed out and ready to be stabilized
Expresses that haystack[a..b] has been rejected as a possible match
of the pattern.
Note that there might be more than one Reject between two Matches,
there is no requirement for them to be combined into one.
Done
🔬 This is a nightly-only experimental API. (pattern)
API not fully fleshed out and ready to be stabilized
Expresses that every byte of the haystack has been visited, ending the iteration.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SearchStep
impl Send for SearchStep
impl Sync for SearchStep
impl Unpin for SearchStep
impl UnwindSafe for SearchStep
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Match: 16 bytesReject: 16 bytesDone: 0 bytes