diff options
author | Aleksey Kladov <[email protected]> | 2018-07-30 21:45:10 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-30 21:45:10 +0100 |
commit | aea86d154ec5adde6adb05088a50f01380ffb8bf (patch) | |
tree | fd10ec3e5379e24e40f3eff78cb1e035f4bb5c89 /src/yellow/red.rs | |
parent | 70b337292117a9bb90e85056dcb4069f8bbc6c0a (diff) |
stackless traversal
Diffstat (limited to 'src/yellow/red.rs')
-rw-r--r-- | src/yellow/red.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yellow/red.rs b/src/yellow/red.rs index bffb72510..8329ec5b2 100644 --- a/src/yellow/red.rs +++ b/src/yellow/red.rs | |||
@@ -84,4 +84,7 @@ impl RedNode { | |||
84 | pub(crate) fn parent(&self) -> Option<ptr::NonNull<RedNode>> { | 84 | pub(crate) fn parent(&self) -> Option<ptr::NonNull<RedNode>> { |
85 | Some(self.parent.as_ref()?.parent) | 85 | Some(self.parent.as_ref()?.parent) |
86 | } | 86 | } |
87 | pub(crate) fn index_in_parent(&self) -> Option<usize> { | ||
88 | Some(self.parent.as_ref()?.index_in_parent) | ||
89 | } | ||
87 | } | 90 | } |