Closed robinkrahl closed 1 year 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.
NodeDataRef
NodeRef
as_node()
AsRef<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
NodeDataRef
provides a reference to itsNodeRef
with theas_node()
method. Could it also implementAsRef<NodeRef>
? That would make it easier to write methods that can accept either aNodeDataRef
or aNodeRef
.