TreeDiff

Trait TreeDiff 

Source
pub trait TreeDiff<'a> {
    type TreeKey: 'a + Hash + PartialEq + Eq + Copy;
    type ChildIter: Iterator<Item = &'a Self::TreeKey>;

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

    // Provided method
    fn subtree_diff(
        &self,
        root1: Self::TreeKey,
        root2: Self::TreeKey,
    ) -> HashSet<Self::TreeKey> { ... }
}
๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.

Required Associated Typesยง

Source

type TreeKey: 'a + Hash + PartialEq + Eq + Copy

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Source

type ChildIter: Iterator<Item = &'a Self::TreeKey>

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.

Required Methodsยง

Source

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

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Source

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

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.

Provided Methodsยง

Source

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

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.

Implementorsยง