matchy-match-mode 2.0.1

Shared MatchMode enum for matchy workspace (internal)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Match mode configuration for text matching operations.
//!
//! This crate provides the `MatchMode` enum which controls case-sensitivity
//! in pattern matching operations across the matchy ecosystem.

/// Match mode for text matching operations.
///
/// Controls whether text comparisons are case-sensitive or case-insensitive.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum MatchMode {
    /// Case-sensitive matching - "abc" matches "abc" but not "ABC"
    CaseSensitive,
    /// Case-insensitive matching - "abc" matches "ABC", "Abc", etc.
    CaseInsensitive,
}