Initial structure for new implementation of walking functions using the heterogeneous tree.
This commit is contained in:
@@ -7,7 +7,7 @@ pub trait BreadcrumbTree {
|
||||
fn get_parent(&self) -> Option<&dyn BreadcrumbTree>;
|
||||
}
|
||||
|
||||
struct BreadcrumbTreeNode<'a, C: IntoContextElement> {
|
||||
pub struct BreadcrumbTreeNode<'a, C: IntoContextElement> {
|
||||
parent: Option<&'a dyn BreadcrumbTree>,
|
||||
element: BreadcrumbTreeNodeElement<'a, C>,
|
||||
}
|
||||
@@ -44,7 +44,7 @@ impl<'a, C: IntoContextElement> BreadcrumbTree for BreadcrumbTreeNode<'a, C> {
|
||||
}
|
||||
}
|
||||
|
||||
struct BreadcrumbTreeIterator<'a>(Option<&'a dyn BreadcrumbTree>);
|
||||
pub struct BreadcrumbTreeIterator<'a>(Option<&'a dyn BreadcrumbTree>);
|
||||
|
||||
impl<'a> Iterator for BreadcrumbTreeIterator<'a> {
|
||||
type Item = &'a dyn IntoContextElement;
|
||||
|
||||
Reference in New Issue
Block a user