1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// dev_bestia_string_utils lib.rs
// region: auto_md_to_doc_comments include README.md A //!
//! # dev_bestia_string_utils
//!
//! **Library for string manipulation**
//! ***[repository](https://github.com/lucianobestia/dev_bestia_string_utils); version: 0.1.19 date: 2021-10-22 authors: Luciano Bestia***
//!
//! []()
//! []()
//! []()
//! []()
//! []()
//!
//! ## Motivation
//!
//! There is always some functions around strings that are used very often.
//! In Rust I use `x.to_string()` or `x.to_owned()` or `String::from(x)` or `format!("{}",x)` so much, that it deserves something shorter.
//! For now my best bet is a macro `s!(x)`. I would much rather have a suffix macro like `x.s!()`, but that does not exist in Rust yet. It has a small probability that one day they will add it to Rust.
//!
//! ## Development
//!
//! I use [cargo-auto](https://crates.io/crates/cargo-auto) for my automation tasks like `cargo auto build` or `cargo auto doc`, ...
//!
//! ## cargo crev reviews and advisory
//!
//! We live in times of danger with [supply chain attacks](https://en.wikipedia.org/wiki/Supply_chain_attack).
//! It is recommended to always use [cargo-crev](https://github.com/crev-dev/cargo-crev)
//! to verify the trustworthiness of each of your dependencies.
//! Please, spread this info.
//! You can also read reviews quickly on the web:
//! <https://web.crev.dev/rust-reviews/crates/>
//!
//! ## open-source free and free as a beer
//!
//! My open-source projects are free and free as a beer (MIT license).
//! I just love programming.
//! But I need also to drink. If you find my projects and tutorials helpful,
//! please buy me a beer donating on my [paypal](https://www.paypal.com/paypalme/LucianoBestia).
//! You know the price of a beer in your local bar ;-)
//! So I can drink a free beer for your health :-)
//! [Na zdravje!](https://translate.google.com/?hl=en&sl=sl&tl=en&text=Na%20zdravje&op=translate) [Alla salute!](https://dictionary.cambridge.org/dictionary/italian-english/alla-salute) [Prost!](https://dictionary.cambridge.org/dictionary/german-english/prost) [Nazdravlje!](https://matadornetwork.com/nights/how-to-say-cheers-in-50-languages/) 🍻
//!
// endregion: auto_md_to_doc_comments include README.md A //!
// internal private modules
// region: public interface
// export/re-export public functions, traits,...
// the macro `s!` is automatically exported at the root of the crate
pub use *;
// endregion: public interface