WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Discussion options

You must be logged in to vote

Ok so i dug through and i think i discovered the way to decouple logic in ELM arcitecture.

Key ist the .map method on Command and Element Types...
https://docs.iced.rs/iced_native/struct.Element.html#method.map
The documentation is actually super helpful and explains decoupling!
It's just that by the point you know to search for Element.map, you must've already figured out the approach on your own...
If just the iced book had a short chapter referring to it, i think the doc situation would be in much better shape already
So i might contribute to it, if i find the time, but i at this point have a really poor understanding, so idk.

Then i implemented following Traits (hopefully they weren't…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@kartonrad
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tarkah
Comment options

@kartonrad
Comment options

Answer selected by kartonrad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants