You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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_strings in ascii and ascii_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.
The text was updated successfully, but these errors were encountered:
If this is added, it would need some good documentation to differentiate it from GodotString and StringName. Also, might be rare enough to be hidden in some nested module...
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 fromGodotString
to the RustString
.Reasons we might want this type to become public (likely with a re-designed API):
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:
&[c_char]
getter.The text was updated successfully, but these errors were encountered: