Expand description
§Internal crate of godot-rust
Do not depend on this crate directly, instead use the godot
crate.
No SemVer or other guarantees are provided.
Re-exports§
pub use godot_ffi as sys;
Modules§
- Built-in types like
Vector2
,GString
andVariant
. - Maps the Godot class API to Rust.
- Godot global enums, constants and utility functions.
- Meta-information about Godot types, their properties and conversions between them.
- Types and traits related to objects.
- Higher-level additions to the Godot engine API.
Macros§
- Converts
impl AsArg<T>
into a locally validT
. - Converts
impl AsArg<T>
into a locally valid&T
. - Constructs [
Array
] literals, similar to Rust’s standardvec!
macro. - Asserts that two values are approximately equal
- Asserts that two values are not approximately equal, using the provided
func
for equality checking. - Constructs [
Dictionary
] literals, close to Godot’s own syntax. - Pushes an error message to Godot’s built-in debugger and to the OS terminal.
- Prints to the Godot console.
- Prints to the Godot console. Supports BBCode, color and URL tags.
- Logs a script error to Godot’s built-in debugger and to the OS terminal.
- Pushes a warning message to Godot’s built-in debugger and to the OS terminal.
- Implements
Bounds
for a user-defined class. - A macro to coerce float-literals into the [
real
] type. - Array of reals.
- Access vector components in different order.
- A convenience macro for using the
Object::tr()
andObject::tr_ex()
methods. - A convenience macro for using the
Object::tr_n()
andObject::tr_n_ex()
methods. - Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Constructs [
VariantArray
] literals, similar to Rust’s standardvec!
macro.