SearchResult

Type Alias SearchResult 

Source
pub type SearchResult = Result<Range<usize>, SearchError>;
Expand description

The result of a SortedString::binary_search().

§Success case

The location where the match was found.

§Error case

Refer to SearchError for details.

Aliased Type§

pub enum SearchResult {
    Ok(Range<usize>),
    Err(SearchError),
}

Variants§

§1.0.0

Ok(Range<usize>)

Contains the success value

§1.0.0

Err(SearchError)

Contains the error value