Function jja::quote::search_quote

source ·
pub fn search_quote(pattern: &str) -> Result<Option<usize>, Error>
Expand description

Searchs a quote within a predefined list of chess-related quotes.

Arguments

  • pattern: &str: A case-insensitive regular expression

Returns

Returns a Result<Option<usize>, Box<dyn regex::Error>> indicating the success or failure of the search operation.