Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method converting Variants to primitives by type #708

Merged
merged 1 commit into from Mar 15, 2021
Merged

Method converting Variants to primitives by type #708

merged 1 commit into from Mar 15, 2021

Conversation

ghost
Copy link

@ghost ghost commented Mar 12, 2021

Adds Variant::dispatch, a method that converts the variant to a primitive value depending on its type, and returns that result as a Rust enum the user can then conveniently match on.

Adds `Variant::dispatch`, a method that converts the variant to a
primitive value depending on its type, and returns that result as a
Rust enum the user can then conveniently `match` on.
@ghost ghost added feature Adds functionality to the library c: core Component: core (mod core_types, object, log, init, ...) labels Mar 12, 2021
@ghost
Copy link
Author

ghost commented Mar 15, 2021

Merging this one.

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 15, 2021

Build succeeded:

@bors bors bot merged commit 9a703d2 into godot-rust:master Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: core Component: core (mod core_types, object, log, init, ...) feature Adds functionality to the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants