kuchiki-rs / kuchiki

(朽木) HTML/XML tree manipulation library for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement AsRef<NodeRef> for NodeDataRef?

robinkrahl opened this issue · comments

NodeDataRef provides a reference to its NodeRef with the as_node() method. Could it also implement AsRef<NodeRef>? That would make it easier to write methods that can accept either a NodeDataRef or a NodeRef.

I will soon archive this repository and make it read-only, so this issue will not be addressed: https://github.com/kuchiki-rs/kuchiki#archived