Struct gdnative_core::Object[][src]

pub struct Object { /* fields omitted */ }

The base class of most Godot classes.

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Memory management

Non reference counted objects such as the ones of this type are usually owned by the engine.

Object is an unsafe pointer, and all of its methods are unsafe.

In the cases where Rust code owns an object of this type, for example if the object was just created on the Rust side and not passed to the engine yet, ownership should be either given to the engine or the object must be manually destroyed using Object::free.

Methods

impl Object
[src]

Constructor.

Because this type is not reference counted, the lifetime of the returned object is not automatically managed. Immediately after creation, the object is owned by the caller, and can be passed to the engine (in which case the engine will be responsible for destroying the object) or destroyed manually using Object::free.

Manually deallocate the object.

Generic dynamic cast.

Trait Implementations

impl Copy for Object
[src]

impl Clone for Object
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Object
[src]

Formats the value using the given formatter. Read more

impl GodotObject for Object
[src]

impl ToVariant for Object
[src]

impl Free for Object
[src]

Auto Trait Implementations

impl !Send for Object

impl !Sync for Object