Debian Codegraph @

src/lib.rs

raw symbols SCIP
1 //! Provides some utility functions for human-readable formatting of words.
2
3 #![no_std]
4
5 extern crate alloc;
6
7 mod case;
8 mod join;
9 mod name;
10
11 pub use case::*;
12 pub use join::*;
13 pub use name::*;
14
15 use alloc::string::String;
16
17 fn fold(mut acc: String, w: &str, ch: char) -> String {
18 if !acc.is_empty() {
19 acc.push(ch);
20 }
21 acc.push_str(w);
22 acc
23 }