diff options
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 | } |