13 releases

0.2.6 Oct 26, 2024
0.2.5 Aug 5, 2024
0.2.4 Jul 22, 2024
0.2.3 Dec 24, 2023
0.1.6 May 11, 2023

#526 in Rust patterns

Download history 468/week @ 2024-07-29 661/week @ 2024-08-05 641/week @ 2024-08-12 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

3,376 downloads per month
Used in 11 crates (via spider)

MIT license

12KB
160 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