pub trait TreeDiff {
    type TreeKey: Hash + PartialEq + Eq + Copy;

    // Required methods
    fn children(&self, key: &Self::TreeKey) -> Option<&[Self::TreeKey]>;
    fn contains_slot(&self, slot: &Self::TreeKey) -> bool;

    // Provided method
    fn subtree_diff(
        &self,
        root1: Self::TreeKey,
        root2: Self::TreeKey
    ) -> HashSet<Self::TreeKey> { ... }
}

Required Associated Types§

Required Methods§

source

fn children(&self, key: &Self::TreeKey) -> Option<&[Self::TreeKey]>

source

fn contains_slot(&self, slot: &Self::TreeKey) -> bool

Provided Methods§

source

fn subtree_diff( &self, root1: Self::TreeKey, root2: Self::TreeKey ) -> HashSet<Self::TreeKey>

Implementors§