SanitizeIdentifiers
de.uni_luebeck.isp.tessla.tessla_compiler.backends.rustBackend.preprocessing.SanitizeIdentifiers$
object SanitizeIdentifiers
This translation step remaps all identifiers to make them comply with Rust spec.
-
Underscores are replaced with double underscores. This is done to give single underscores special meaning, since they are then only generated by the other rules here.
-
The '$' character is replaced with '_', because the dollar sign is restricted for use in macros.
-
Rust keywords are prefixed with 'k_'.
-
Any unicode characters that are not in UAX31-R1 are mapped to their hex representation.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- SanitizeIdentifiers.type