Add DelegateFn to pass closures directly as delegate parameters#4157
Draft
Add DelegateFn to pass closures directly as delegate parameters#4157
Conversation
…rameters Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/ad0a00a6-5b53-4472-ab29-a5885af8fddc Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
kennykerr
April 7, 2026 20:17
View session
kennykerr
reviewed
Apr 7, 2026
…ateFn Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/39cc08e2-0ee3-45af-af6c-0beb1ecc9f6a Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
Copilot
AI
changed the title
Add DelegateFn<F> to pass closures directly as delegate parameters
Add DelegateFn to pass closures directly as delegate parameters
Apr 7, 2026
Collaborator
|
@copilot fix the build |
Copilot stopped work on behalf of
kennykerr due to an error
April 7, 2026 21:08
Copilot stopped work on behalf of
kennykerr due to an error
April 7, 2026 21:20
Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/78b60784-2fbb-4d60-8a72-6da02176cdde Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
…nent bindings Agent-Logs-Url: https://github.com/microsoft/windows-rs/sessions/e1bca319-545f-4a58-b4dc-1590ac199d7c Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From<DelegateFn<F>>impl#![cfg(windows)]fromwindows-future/src/lib.rs(not part of this PR's scope)From<DelegateFn<F>> for Callbackimpl tocrates/tests/misc/component/src/bindings.rscrates/tests/misc/component_client/src/bindings.rs