ballsteve / xrust

XPath, XQuery, and XSLT for Rust
Apache License 2.0
89 stars 9 forks source link

Implmented PartialEq for Node #86

Closed Devasta closed 3 months ago

Devasta commented 3 months ago

Implements the PartialEq trait for trees.

What is actually happening is that PartialEq is a supertrait of item::Node. The Node trait then defines an 'eq' method and provides a default implementation that utilises the generic methods to navigate both trees.

Smite can't use the default implementation, so it gets its own 'eq' method for the smite::Node type.

Already reviewed as part of PR 84