Make `LocatedTree` and `LocatedPrunableTree` type aliases public.

This commit is contained in:
Kris Nuttycombe 2023-02-06 16:04:16 -07:00
parent 0cb1cec21f
commit fa7c6673fd
1 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ impl<A: Clone, V: Clone> Tree<A, V> {
}
}
type PrunableTree<H> = Tree<Option<Rc<H>>, (H, RetentionFlags)>;
pub type PrunableTree<H> = Tree<Option<Rc<H>>, (H, RetentionFlags)>;
impl<H: Hashable + Clone + PartialEq> PrunableTree<H> {
/// Returns the the value if this is a leaf.
@ -690,7 +690,7 @@ impl<A: Default + Clone, V: Clone> LocatedTree<A, V> {
}
}
type LocatedPrunableTree<H> = LocatedTree<Option<Rc<H>>, (H, RetentionFlags)>;
pub type LocatedPrunableTree<H> = LocatedTree<Option<Rc<H>>, (H, RetentionFlags)>;
/// A data structure describing the nature of a [`Node::Nil`] node in the tree that was introduced
/// as the consequence of an insertion.