Module shape
Expand description
Static type descriptors for Rust types towards Godot.
The symbols in this module and primarily GodotShape are used to describe the shape of a Rust type, which combines information about:
- To which Godot type it maps.
- Metadata relevant for properties (var/export).
- Metadata relevant for method signatures (parameters and return values).
These shapes are then transformed to lower-level GDExtension descriptors, located in register::info.
Godot then accepts those for registration.
Structs§
- Enumerator
Shape - Describes a single enumerator entry: display name and ordinal value. Used in
GodotShape::Enum.
Enums§
- Class
Heritage - Which tree in the Godot hierarchy a class belongs to; determines how it appears in property hints.
- Godot
Element Shape - Same as
GodotShape, but for element types nested in typed arrays/dictionaries. - Godot
Shape - The “shape” of a Godot type: whether it’s a builtin, a class, an enum/bitfield, etc.