Skip to content

feat: add blanket IntoAttributeValue impl for references#5447

Merged
jkelleyrtp merged 2 commits intoDioxusLabs:mainfrom
tmchow:feat/into-attribute-value-ref
Apr 8, 2026
Merged

feat: add blanket IntoAttributeValue impl for references#5447
jkelleyrtp merged 2 commits intoDioxusLabs:mainfrom
tmchow:feat/into-attribute-value-ref

Conversation

@tmchow
Copy link
Copy Markdown
Contributor

@tmchow tmchow commented Apr 4, 2026

Summary

Adds a blanket IntoAttributeValue implementation for &T where T: IntoAttributeValue + Clone.

Closes #5444

This contribution was developed with AI assistance (Claude Code).

Adds `impl<T: IntoAttributeValue + Clone> IntoAttributeValue for &T` so
users don't need to explicitly dereference or clone when passing references
to RSX attributes.

Closes DioxusLabs#5444
@tmchow tmchow requested a review from a team as a code owner April 4, 2026 08:47
@jkelleyrtp jkelleyrtp merged commit e396c1f into DioxusLabs:main Apr 8, 2026
21 checks passed
@tmchow
Copy link
Copy Markdown
Contributor Author

tmchow commented Apr 8, 2026

tx for the merge @jkelleyrtp !

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.

Convinience Impl for IntoAttributeValue

2 participants