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

add Envelope #253

Closed
plastikfan opened this issue May 3, 2024 · 0 comments · Fixed by #254
Closed

add Envelope #253

plastikfan opened this issue May 3, 2024 · 0 comments · Fixed by #254
Assignees
Labels
feature New feature or request

Comments

@plastikfan
Copy link
Contributor

plastikfan commented May 3, 2024

when using a struct as the core type T with rx, T can not have pointer receivers. This is a bit of a burden for larger structs as more copying will be enforced. To mitigate this, the Envelope can be used to wrap the core T. This will enable the client to use pointer receivers on any custom struct defined for use with rx. It also has the benefit of satifying the ProxyField constraint on the client's behalf.

@plastikfan plastikfan added the feature New feature or request label May 3, 2024
@plastikfan plastikfan self-assigned this May 3, 2024
plastikfan added a commit that referenced this issue May 4, 2024
@plastikfan plastikfan linked a pull request May 4, 2024 that will close this issue
plastikfan added a commit that referenced this issue May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant