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
// devela::str
//
//! String slices, extends [`core::str`].
//!
//! It also reexports most [`const-str`](https://docs.rs/const-str) macros
//! directly related to [`&str`], prefixed with `str_`, and a new description.
//

/* always compiled for internal use */

/* only compiled with the `ops` feature */

#[cfg(feature = "str")]
mod ext;

/* re-exports */

#[cfg(feature = "str")]
pub use all::*;
#[cfg(feature = "str")]
pub(crate) mod all {
    pub use super::ext::StrExt;

    #[cfg(feature = "const-str")]
    pub use super::reexport_const_str::*;
}

#[cfg(all(feature = "str", feature = "const-str"))]
mod reexport_const_str;