Crate german_str
Source - format_german_str
- Formats arguments to a
GermanStr, potentially without allocating.
- GermanStr
- A string type with the following properties:
- InitError
- Represents the reasons why creating a new
GermanStr could fail.
- MAX_INLINE_BYTES
- The maximum number of chars a GermanStr can contain before requiring
a heap allocation.
- MAX_LEN
- The absolute maximum number of chars a GermanStr can hold.
Since the len is an u32, it is 2^32.
- ToGermanStr
- Almost identical to
ToString, but converts to GermanStr instead.
- str_prefix
- Returns the first 4 bytes of a string.
If the string has less than 4 bytes, extra bytes are set to 0.
- str_suffix
- Returns a slice to every byte of a string, skipping the first 4.