Crate german_str

Crate german_str 

Source

Macros§

format_german_str
Formats arguments to a GermanStr, potentially without allocating.

Structs§

GermanStr
A string type with the following properties:

Enums§

InitError
Represents the reasons why creating a new GermanStr could fail.

Constants§

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.

Traits§

ToGermanStr
Almost identical to ToString, but converts to GermanStr instead.

Functions§

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.