Module ct

Module ct 

Source
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 str constant, ignoring non-ascii unicode characters.
str_get
Indexes a &'static str constant, returning None when the index is not on a character boundary.
str_index
Indexes a &'static str constant.
str_repeat
Creates a &'static str by repeating a &'static str constant times times
str_replace
Replaces all the instances of $pattern in $input (a &'static str constant) with $replace_with (a &'static str constant).
str_splice
Replaces a substring in a &'static str constant. Returns both the new resulting &'static str, and the replaced substring.
str_splice_out
Alternative version of str_splice which only returns the string with the applied replacement.

Structs§

PWrapper
Wrapper for many std types, which implements the const_debug_fmt and/or const_display_fmt methods for them.
SplicedStr
The return value of str_splice

Enums§

Case
The casing style of a string.