Skip to main content

Module shape

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§

EnumeratorShape
Describes a single enumerator entry: display name and ordinal value. Used in GodotShape::Enum.

Enums§

ClassHeritage
Which tree in the Godot hierarchy a class belongs to; determines how it appears in property hints.
GodotElementShape
Same as GodotShape, but for element types nested in typed arrays/dictionaries.
GodotShape
The “shape” of a Godot type: whether it’s a builtin, a class, an enum/bitfield, etc.