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

Cleanup around godot::meta argument conversions #948

Merged
merged 6 commits into from
Nov 10, 2024
Merged

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Nov 9, 2024

Based on #947.

Changes:

  • Group all argument-conversion related traits and types in meta::args (internal module).
  • Move obj::AsObjectArg -> meta::AsObjectArg
  • Document meta module level regarding argument conversions
  • Rename ApiParam -> ParamType (it being a more special GodotType)
  • Gd::null_arg() now uses abstract impl AsArg<T> return type
  • Replace remaining impl Into<StringName> occurrences with AsArg

@Bromeon Bromeon added documentation Improvements or additions to documentation quality-of-life No new functionality, but improves ergonomics/internals c: core Core components labels Nov 9, 2024
@Bromeon Bromeon changed the title Clean ups around godot::meta argument conversions Cleanup around godot::meta argument conversions Nov 9, 2024
@Bromeon Bromeon added this to the 0.2 milestone Nov 9, 2024
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-948

@Bromeon Bromeon added this pull request to the merge queue Nov 10, 2024
Merged via the queue into master with commit b3086b5 Nov 10, 2024
15 checks passed
@Bromeon Bromeon deleted the qol/meta-args-module branch November 10, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: core Core components documentation Improvements or additions to documentation quality-of-life No new functionality, but improves ergonomics/internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants