Module godot::obj

Expand description

Types and traits related to objects.

The most important symbols in this module are:

  • GodotClass, which is implemented for every class that Godot can work with (either engine- or user-provided).
  • Gd, a smart pointer that manages instances of Godot classes.

Modules§

  • Different ways how bounds of a GodotClass can be checked.
  • Capability traits, providing dedicated functionalities for Godot classes

Structs§

  • Restricted version of Gd, to hold the base instance inside a user’s GodotClass.
  • Mutable/exclusive reference guard for a Base pointer.
  • Shared reference guard for a Base pointer.
  • Smart pointer to objects owned by the Godot engine.
  • Mutably/exclusively bound reference guard for a Gd smart pointer.
  • Immutably/shared bound reference guard for a Gd smart pointer.
  • Represents a non-zero instance ID.
  • Error stemming from the non-uniqueness of the Gd instance.
  • Ergonomic late-initialization container with ready() support.
  • Mutable/exclusive reference guard for a Base pointer.
  • Shared reference guard for a Base pointer.

Enums§

  • Type representing the absence of a base class, at the root of the hierarchy.

Traits§

  • Library-implemented trait to check bounds on GodotClass types.
  • Auto-implemented for all engine-provided bitfields.
  • Auto-implemented for all engine-provided enums.
  • Makes T eligible to be managed by Godot and stored in Gd<T> pointers.
  • Trait for enums that can be used as indices in arrays.
  • Non-strict inheritance relationship in the Godot class hierarchy.
  • Extension trait for all manually managed classes.
  • Extension trait for all reference-counted classes.
  • Implemented for all user-defined classes, providing extensions on the raw object to interact with Gd.
  • Trait that’s implemented for user-defined classes that provide a Base<T> field.