Crate gdnative [−] [src]
Rust bindings for the Godot game engine
Reference-counting and mutability
All non trivially copyable godot types exposed in this crate are
internally reference-counted and allow mutable aliasing.
In rust parlance this means that a type such as gdnative::ByteArray
is functionally equivalent to a Rc<Cell<Vec<u8>>>
rather than Vec<u8>
.
Since it is easy to expect container types to allocate a copy of their content
when using the Clone
trait, most of these types do not implement Clone
and
instead provide a new_ref(&self) -> Self
method to create references to the
same collection or object.
Re-exports
pub extern crate gdnative_geom as geom; |
pub use geom::*; |
Macros
godot_class | |
godot_error | |
godot_init | |
godot_warn |
Structs
Enums
Traits
GodotClass | |
GodotType | |
PropertyGetter | |
PropertySetter |
Functions
result_from_sys |
Type Definitions
GodotResult |