gdvariants
Rust std library collections wrapper that implements the godot-rust variant traits for convenience when using godot-rust.
Traits implemented on top of the standard library implementation:
- Export required for the property attribute.
- FromVariant required for converting Godot types to Rust types.
- ToVariant required for converting Rust types to Godot types.
- Borrow for borrowing the base standard library type.
- BorrowMut for borrowing the base standard library type as a mutable reference.
- From for converting standard library types to gdvariant types.
Types
- HashMap
- HashSet
- Vec
Usage
Add this to your Cargo.toml:
= "*"
Read the godot-rust book for information on how to setup a Godot project that uses Rust.
Property
use *;
use *;
use HashMap;
Networking
use *;
use *;
use HashMap;
...
use *;
use *;
use HashMap;
...
Crate Features
- serde: enables deserialize and serialize for collections.