Skip to content

Commit e2b72fe

Browse files
committed
more
1 parent 08d779d commit e2b72fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/trees/tree.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ impl<'treeseq> Tree<'treeseq> {
110110
self.inner.left_sib(u.into())
111111
}
112112

113+
/// Get the right sib of node `u`.
114+
///
115+
/// Returns `None` if `u` is out of range.
116+
pub fn right_sib<N: Into<NodeId> + Copy>(&self, u: N) -> Option<NodeId> {
117+
self.inner.right_sib(u.into())
118+
}
119+
113120
/// Get the right child of node `u`.
114121
///
115122
/// Returns `None` if `u` is out of range.

0 commit comments

Comments
 (0)