#[non_exhaustive]pub enum Equality {
AsWritten,
ByNamespace,
}Expand description
How Document::same_tree compares two nodes. Both compare text, comments and processing
instructions exactly, as the reader holds them, and the children in order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AsWritten
As written: each name with its prefix, local name and namespace URI, and the attributes in order, the namespace declarations among them. The bytes of an element’s span read back so.
ByNamespace
By meaning: each name by its namespace URI and local name, or by its prefix and local name when it has no namespace; the attributes in any order, without the namespace declarations. Two spellings of one element, with other prefixes, quotes or attribute order, compare so as equal.
Trait Implementations§
impl Copy for Equality
impl Eq for Equality
impl StructuralPartialEq for Equality
Auto Trait Implementations§
impl Forget for Equality
impl Freeze for Equality
impl Move for Equality
impl RefUnwindSafe for Equality
impl Send for Equality
impl Sync for Equality
impl Unpin for Equality
impl UnsafeUnpin for Equality
impl UnwindSafe for Equality
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more