Open
Description
Created during survey of commented code (#377).
godot_char_string
is a Godot string type representing a byte string of some encoding. It is currently used internally in the #[doc(hidden)]
Utf8String
type in the conversion process from GodotString
to the Rust String
.
Reasons we might want this type to become public (likely with a re-designed API):
- Sake of completeness.
- Beyond UTF8, Godot also exposes functions to create
char_string
s inascii
andascii_extended
encodings, that could be interesting.
Reasons we might want to remove it altogether in favor of inline FFI calls in conversion:
- Extremely narrow API surface of the type that essentially consists of only a
&[c_char]
getter.