Skip to content

Conversation

@barraguda
Copy link
Contributor

Problem

If I have a struct Kv<String, MyCustomType>, but I'd like to also fetch a MySecondType every now and then, I'd need to use a generic enum or Vec as intermediary type.

Solution

impl get_as, set_as to take the V type from the function itself.

Docs Update

todo

@barraguda barraguda merged commit 72db89a into develop Dec 19, 2024
1 check passed
@barraguda barraguda deleted the bp/kvgetas branch December 19, 2024 22:41
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.

3 participants