Skip to content

Typed dictionary iterators#1516

Merged
Bromeon merged 3 commits intomasterfrom
feature/dictionary-typed-iter
Mar 4, 2026
Merged

Typed dictionary iterators#1516
Bromeon merged 3 commits intomasterfrom
feature/dictionary-typed-iter

Conversation

@Bromeon
Copy link
Copy Markdown
Member

@Bromeon Bromeon commented Mar 3, 2026

For now, we can still keep ad-hoc re-typing via

dict.iter_shared().typed::<K, V>()

for untyped dictionaries (VarDictionary + AnyDictionary).

Also adds the dict! {= "key": 123} syntax with =, consistent with array!.

Bromeon added 3 commits March 3, 2026 22:56
Re-export isn't fully considered by rustdoc, so there are still
method signatures like

   fn iter_shared(&self) -> Iter<'_, ..>

which isn't very helpful.
@Bromeon Bromeon added feature Adds functionality to the library c: core Core components labels Mar 3, 2026
@Bromeon Bromeon added this to the 0.5 milestone Mar 3, 2026
@GodotRust
Copy link
Copy Markdown

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

@Bromeon Bromeon added this pull request to the merge queue Mar 4, 2026
Merged via the queue into master with commit ac52a57 Mar 4, 2026
23 checks passed
@Bromeon Bromeon deleted the feature/dictionary-typed-iter branch March 4, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: core Core components feature Adds functionality to the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants