Expand description
Compile-time tools.
Re-exports§
pub use super::super::ct;
Modules§
- exposed
- Exposed namespace of the module.
- orphan
- Orphan namespace of the module.
- own
- Own namespace of the module.
- prelude
- Prelude to use essentials:
use my_module ::prelude :: *. - str
- Compile-time const expressions for strings.
Macros§
- concatcp
- Concatenates constants of primitive types into a
&'static str. - formatcp
- Formats constants of primitive types into a
&'static str - map_
ascii_ case - Converts the casing style of a
&'static strconstant, ignoring non-ascii unicode characters. - str_get
- Indexes a
&'static strconstant, returningNonewhen the index is not on a character boundary. - str_
index - Indexes a
&'static strconstant. - str_
repeat - Creates a
&'static strby repeating a&'static strconstanttimestimes - str_
replace - Replaces all the instances of
$patternin$input(a&'static strconstant) with$replace_with(a&'static strconstant). - str_
splice - Replaces a substring in a
&'static strconstant. Returns both the new resulting&'static str, and the replaced substring. - str_
splice_ out - Alternative version of
str_splicewhich only returns the string with the applied replacement.
Structs§
- PWrapper
- Wrapper for many std types,
which implements the
const_debug_fmtand/orconst_display_fmtmethods for them. - Spliced
Str - The return value of
str_splice
Enums§
- Case
- The casing style of a string.