-
Notifications
You must be signed in to change notification settings - Fork 210
Open
Labels
c: coreComponent: core (mod core_types, object, log, init, ...)Component: core (mod core_types, object, log, init, ...)featureAdds functionality to the libraryAdds functionality to the library
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.
Metadata
Metadata
Assignees
Labels
c: coreComponent: core (mod core_types, object, log, init, ...)Component: core (mod core_types, object, log, init, ...)featureAdds functionality to the libraryAdds functionality to the library