Skip to main content

stefans_utils/
lib.rs

1//! A collection of useful Rust utility functions, types, and traits.
2
3// Traits:
4pub mod as_arc;
5pub mod as_bool;
6pub mod as_clone;
7pub mod as_copy;
8pub mod as_str;
9pub mod collect_by_key;
10pub mod expect_comparison;
11pub mod expect_length;
12pub mod find_upwards;
13pub mod from_str;
14pub mod map;
15pub mod map_into;
16pub mod try_map_into;
17pub mod unwrap_into;
18pub mod with_len;
19
20// Trait implementations:
21pub mod bool;
22pub mod hash_map;
23pub mod hash_set;
24pub mod option;
25pub mod path;
26pub mod str;
27pub mod string;
28pub mod vec;
29
30// Structs:
31pub mod comparator;
32pub mod secret;
33
34// Serde-helpers
35#[cfg(all(feature = "serde", feature = "schemars"))]
36pub mod literals;
37#[cfg(feature = "serde")]
38pub mod php_safe_hashmap;
39#[cfg(all(feature = "serde", feature = "indexmap"))]
40pub mod php_safe_indexmap;
41#[cfg(feature = "serde")]
42pub mod single_kv_map;
43
44// Exports:
45pub mod dependencies;
46pub mod prelude;