16 releases

0.2.9 Nov 28, 2024
0.2.8 Nov 28, 2024
0.2.6 Oct 26, 2024
0.2.5 Aug 5, 2024
0.1.6 May 11, 2023

#425 in Rust patterns

Download history 350/week @ 2024-08-19 1061/week @ 2024-08-26 530/week @ 2024-09-02 618/week @ 2024-09-09 647/week @ 2024-09-16 1066/week @ 2024-09-23 1086/week @ 2024-09-30 939/week @ 2024-10-07 502/week @ 2024-10-14 1282/week @ 2024-10-21 695/week @ 2024-10-28 921/week @ 2024-11-04 356/week @ 2024-11-11 712/week @ 2024-11-18 1980/week @ 2024-11-25 935/week @ 2024-12-02

4,007 downloads per month
Used in 12 crates (2 directly)

MIT license

15KB
263 lines

case_insensitive_string

A rust case_insensitive_string struct crate.

Install the crate with cargo add case_insensitive_string.

use case_insensitive_string::CaseInsensitiveString;

fn main() {
    let case_insensitive = CaseInsensitiveString::from("iDk");

    // both of the strings are a match!
    assert_eq!(case_insensitive, CaseInsensitiveString::from("IDK"))
}

Features

  1. compact feature flag to enable compact_str usage.
  2. serde feature flag to enable serde usage.

Dependencies

~0–265KB