Type Alias DiffTree

Source
pub type DiffTree<N, B> = Tree<DiffNode<N>, B>;
Expand description

A tree containing DiffNodes as nodes

Aliased Type§

pub struct DiffTree<N, B> { /* private fields */ }

Implementations§

Source§

impl<N, B> DiffTree<N, B>
where B: Clone,

Source

pub fn rev(&mut self)

Source

pub fn validate(&self) -> Result<(), Path<B>>

Source§

impl<N, B> DiffTree<N, B>
where N: Clone, B: Clone + Eq + Hash,

Source

pub fn mirror_subtree_rec( &mut self, tree: &Tree<N, B>, idx_s: usize, idx_t: usize, now: bool, )

Source§

impl<N, B> DiffTree<N, B>
where N: Clone + Default, B: Clone + Eq + Hash + Default,

Source

pub fn mirror_subtree(&mut self, tree: &Tree<N, B>, path: &Path<B>, now: bool)

Source§

impl<N, B> DiffTree<N, B>
where N: Default + Eq, B: Default + Eq + Hash + Clone,

Source

pub fn is_applicable_extend( &self, tree: &Tree<N, B>, ) -> Result<(), DiffApplyError<B>>

Source§

impl<N, B> DiffTree<N, B>
where N: Eq, B: Eq + Hash + Clone,

Source

pub fn is_applicable(&self, tree: &Tree<N, B>) -> Result<(), DiffApplyError<B>>

Trait Implementations§

Source§

impl<N, B> From<DiffMap<N, B>> for DiffTree<N, B>
where N: Ord, B: Ord + Default + Hash + Clone,

Source§

fn from(value: DiffMap<N, B>) -> Self

Converts to this type from the input type.