Expand description
Zero-copy, const-generic string combinator for no_std environments.
CombinedStr holds N string slices and presents them as a single logical
string without allocating. Use the strs! macro to construct one.
§Features
alloc(default) — enables conversions to/fromStringandCow<str>, plusAdd/AddAssignimpls for those types.nightly— enables thegeneric_const_exprsunstable feature, which allows concatenatingCombinedStrs with+:CombinedStr<N> + &str→CombinedStr<{N + 1}>CombinedStr<N> + CombinedStr<M>→CombinedStr<{N + M}>
Macros§
- strs
- Constructs a
CombinedStrfrom a comma-separated list of string expressions.
Structs§
- Combined
Str - A combined view of N string slices, treated as a single contiguous string.
- Combined
StrIter - An iterator over the string segments of a
CombinedStr. - Combined
StrView - A borrowed view into a
CombinedStr, representing a sub-range that may span multiple segments. - Combined
StrView Iter - An iterator over the string segments of a
CombinedStrView.
Traits§
- Combined
StrIndex - A sealed trait for indexing into a
CombinedStrby range, returning aCombinedStrView.