| Crates.io | matchy-match-mode |
| lib.rs | matchy-match-mode |
| version | 2.0.0 |
| created_at | 2025-12-29 07:09:58.723052+00 |
| updated_at | 2025-12-29 07:09:58.723052+00 |
| description | Shared MatchMode enum for matchy workspace (internal) |
| homepage | |
| repository | https://github.com/matchylabs/matchy |
| max_upload_size | |
| id | 2010119 |
| size | 3,694 |
Shared match mode enum for the matchy workspace.
This tiny crate (10 lines, zero dependencies) provides the MatchMode enum used across all matchy crates to specify case-sensitive or case-insensitive matching.
pub enum MatchMode {
CaseSensitive,
CaseInsensitive,
}
By extracting MatchMode into its own crate, we eliminate circular dependencies between other workspace crates that all need to reference this shared type.
use matchy_match_mode::MatchMode;
let mode = MatchMode::CaseInsensitive;
Copy + Clone + Debug + PartialEq + Eq