Crate rust_assembler

Source

Modules§

bytes
stack_str
str

Macros§

contains_bytes
Returns a bool saying whether the given string contains the specified pattern, expressed as an array of &str. Avoids all heap allocations.
contains_str
Returns a bool saying whether the given string contains the specified pattern, expressed as an array of &str. Avoids all heap allocations.
extend_string
extend_vec
find_bytes
Returns a bool saying whether the given string contains the specified pattern, expressed as an array of integers slices (e.g. [&[20, 30], &[44, 65]]). Avoids all heap allocations.
find_str
Returns a bool saying whether the given string contains the specified pattern, expressed as an array of &str. Avoids all heap allocations.
remove_matches
Replaces multiple str at once, avoiding intermediate allocations. It returns a new String containing the result. Values passed by value keep ownership.
replace_str
Replaces multiple str at once, avoiding intermediate allocations. It returns a new String containing the result. Values passed by value keep ownership.
usize_to_str
Formats a positive number into a StackStr<N>. The parameters required are the number that must be converted and the length of N, namely the number of digits of the given number, separated by a semicolon. In case the number has less digits than the specified length, it will have trailing zeros, represented as their utf-8 value: 48. In case the length is less than required, it will result in undefined behavior.