Skip to content

Make ClosureHookPoint only generic over lifetimes, not types#23

Merged
regomne merged 1 commit into
regomne:masterfrom
nex3:no-generic-closures
Oct 31, 2025
Merged

Make ClosureHookPoint only generic over lifetimes, not types#23
regomne merged 1 commit into
regomne:masterfrom
nex3:no-generic-closures

Conversation

@nex3

@nex3 nex3 commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

Closure types can't be expressed explicitly, which made it very difficult to use the types previously returned by the closure hooks in anything other than the simplest ways. This encapsulates them behind a dyn bound so that callers only need to specify ClosureHookPoint.

(This is technically a breaking change, although I doubt anyone other than me is using these APIs yet.)

Closure types can't be expressed explicitly, which made it very
difficult to use the types previously returned by the closure hooks in
anything other than the simplest ways. This encapsulates them behind a
dyn bound so that callers only need to specify `ClosureHookPoint`.
@regomne

regomne commented Oct 30, 2025

Copy link
Copy Markdown
Owner

Thanks to the addition. I'll upgrade the minor version.

@regomne regomne merged commit 211ef57 into regomne:master Oct 31, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants