pub enum Node<P: Primitive> {
Map(HashMap<String, Node<P>>),
Sequence(Vec<Node<P>>),
Leaf(P),
}Expand description
Represents a single Node. We transform input structures into Node trees in order to recursively diff them
Variants§
Trait Implementations§
impl<P: Eq + Primitive> Eq for Node<P>
impl<P: Primitive> StructuralPartialEq for Node<P>
Auto Trait Implementations§
impl<P> Freeze for Node<P>where
P: Freeze,
impl<P> RefUnwindSafe for Node<P>where
P: RefUnwindSafe,
impl<P> Send for Node<P>where
P: Send,
impl<P> Sync for Node<P>where
P: Sync,
impl<P> Unpin for Node<P>where
P: Unpin,
impl<P> UnsafeUnpin for Node<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Node<P>where
P: UnwindSafe,
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