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_secret;
9pub mod as_str;
10pub mod collect_by_key;
11pub mod expect_comparison;
12pub mod expect_length;
13pub mod find_upwards;
14pub mod from_str;
15pub mod map;
16pub mod map_into;
17pub mod try_map_into;
18pub mod unwrap_into;
19pub mod with_len;
20
21// Trait implementations:
22pub mod bool;
23pub mod hash_map;
24pub mod hash_set;
25pub mod option;
26pub mod path;
27pub mod str;
28pub mod string;
29pub mod vec;
30
31// Structs:
32pub mod comparator;
33pub mod secret;
34
35// Serde-helpers
36#[cfg(all(feature = "serde", feature = "schemars"))]
37pub mod literals;
38#[cfg(feature = "serde")]
39pub mod php_safe_hashmap;
40#[cfg(all(feature = "serde", feature = "indexmap"))]
41pub mod php_safe_indexmap;
42#[cfg(feature = "serde")]
43pub mod single_kv_map;
44
45// Exports:
46pub mod dependencies;
47pub mod prelude;