Skip to main content

matchy_match_mode/
lib.rs

1//! Match mode configuration for text matching operations.
2//!
3//! This crate provides the `MatchMode` enum which controls case-sensitivity
4//! in pattern matching operations across the matchy ecosystem.
5
6/// Match mode for text matching operations.
7///
8/// Controls whether text comparisons are case-sensitive or case-insensitive.
9#[derive(Debug, Clone, Copy, PartialEq, Eq)]
10pub enum MatchMode {
11    /// Case-sensitive matching - "abc" matches "abc" but not "ABC"
12    CaseSensitive,
13    /// Case-insensitive matching - "abc" matches "ABC", "Abc", etc.
14    CaseInsensitive,
15}