You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The provided methods of the Widget trait use the name _state, whereas the required methods use tree, and it is these names which the IDE uses when auto-completing new methods that I want to impl on the trait.
tree is nicer, because then I can write let state = tree.state.downcast_ref::<...>() without shadowing the original Tree.
For consistency, it would be nicer to rename occurrences of _state to _tree. Saves me having to rewrite the parameter's name in its entirety vs just deleting the leading underscore if I want to use it in my impl.
What is the expected behavior?
.
Version
master
Operating System
Linux
Do you have any log output?
The text was updated successfully, but these errors were encountered:
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
https://docs.iced.rs/iced/advanced/trait.Widget.html
The provided methods of the
Widget
trait use the name_state
, whereas the required methods usetree
, and it is these names which the IDE uses when auto-completing new methods that I want toimpl
on the trait.tree
is nicer, because then I can writelet state = tree.state.downcast_ref::<...>()
without shadowing the originalTree
.For consistency, it would be nicer to rename occurrences of
_state
to_tree
. Saves me having to rewrite the parameter's name in its entirety vs just deleting the leading underscore if I want to use it in myimpl
.What is the expected behavior?
.
Version
master
Operating System
Linux
Do you have any log output?
The text was updated successfully, but these errors were encountered: