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
Currently, for example if you have an Element, but you want to use first_child from Node, you have to either e.into::<Node>().first_child() or (e.as_ref() as &Node).first_child(). If would be great if one can just use e.first_child() without explicit type conversion.
Types defined in WebIDL can only have single inheritance, so I think this is doable via Deref chain.
The text was updated successfully, but these errors were encountered:
Ah I'm gonna close this in favor of the RFC. If we decide to merge that then we can have a tracking issue here to implement that, but until that happens all discussion should be on the RFC!
Currently, for example if you have an
Element
, but you want to usefirst_child
fromNode
, you have to eithere.into::<Node>().first_child()
or(e.as_ref() as &Node).first_child()
. If would be great if one can just usee.first_child()
without explicit type conversion.Types defined in WebIDL can only have single inheritance, so I think this is doable via
Deref
chain.The text was updated successfully, but these errors were encountered: