Skip to content

Conversation

@mikea
Copy link
Collaborator

@mikea mikea commented Aug 28, 2025

Rather than expanding to static member of Rust expand it to a function with two parameters. This way from<X>(foo) can be overloaded by defining from(X, foo), thus keeping set of allowed conversions open.

Client usage of from<Rust>(foo) is not changed.

Other direction of capnproto/capnproto#2396

Rather than expanding to static member of Rust expand it to a function
with two parameters. This way from<X>(foo) can be overloaded by defining
from(X, foo), thus keeping set of allowed conversions open.
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