### Defining Glob and Path Constants for Benchmarking (Test Case 1) in Rust Source: https://github.com/oxc-project/fast-glob/blob/main/README.md This snippet defines static string constants for a simple glob pattern and a target path. These constants are specifically used as input for performance benchmarks in 'Test Case 1', allowing for consistent evaluation of different glob matching libraries against a common, straightforward pattern. ```Rust const GLOB: &'static str = "some/**/n*d[k-m]e?txt"; const PATH: &'static str = "some/a/bigger/path/to/the/crazy/needle.txt"; ``` -------------------------------- ### Defining Glob and Path Constants for Benchmarking (Test Case 2) in Rust Source: https://github.com/oxc-project/fast-glob/blob/main/README.md This snippet defines static string constants for a more complex glob pattern, including brace expansion, and a corresponding target path. These constants are used as input for performance benchmarks in 'Test Case 2', designed to evaluate the efficiency of glob matching libraries when handling advanced and nested patterns. ```Rust const GLOB: &'static str = "some/**/{tob,crazy}/?*.{png,txt}"; const PATH: &'static str = "some/a/bigger/path/to/the/crazy/needle.txt"; ``` -------------------------------- ### Matching a Glob Pattern with `glob_match` in Rust Source: https://github.com/oxc-project/fast-glob/blob/main/README.md This snippet demonstrates how to use the `glob_match` function from the `fast_glob` crate to check if a given path matches a glob pattern. It defines a glob pattern and a target path, then asserts that the path successfully matches the pattern, showcasing basic usage of the library. ```Rust use fast_glob::glob_match; let glob = "some/**/n*d[k-m]e?txt"; let path = "some/a/bigger/path/to/the/crazy/needle.txt"; assert!(glob_match(glob, path)); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.