mod edge;
pub use self::edge::{HalfEdge, HalfEdgeOwned, HalfEdgeTreeNode};
mod node;
pub use self::node::{DepthFirstDescendantsIter, InnerNode, LeafNode, Node, NodeValue};
mod path;
pub use self::path::{PathSegment, RootPath, SegmentedPath};
mod tree;
pub use self::tree::{
AncestorTreeNodeIter, InsertOrUpdateNodeValueError, MatchNodePath, NewNodeId,
NodeInsertedOrUpdated, NodePathMatched, NodePathResolved, ParentNodeUpdated, PathTree,
PathTreeTypes, SubtreeInsertedOrReplaced, SubtreeRemoved, TreeNode,
TreeNodeParentChildPathConflict, UpdateNodeValueError,
};
#[cfg(feature = "sync")]
type HashMap<K, V> = rpds::HashTrieMapSync<K, V>;
#[cfg(feature = "sync")]
fn new_hash_map<K: std::hash::Hash + Eq, V>() -> rpds::HashTrieMapSync<K, V> {
rpds::HashTrieMapSync::new_sync()
}
#[cfg(not(feature = "sync"))]
type HashMap<K, V> = rpds::HashTrieMap<K, V>;
#[cfg(not(feature = "sync"))]
fn new_hash_map<K: std::hash::Hash + Eq, V>() -> rpds::HashTrieMap<K, V> {
rpds::HashTrieMap::new()
}
#[cfg(test)]
mod tests;