kuchiki-rs / kuchiki

(朽木) HTML/XML tree manipulation library for Rust
MIT License
470 stars 54 forks source link

Implement AsRef<NodeRef> for NodeDataRef? #76

Closed robinkrahl closed 1 year ago

robinkrahl commented 4 years ago

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.

SimonSapin commented 1 year ago

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