We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cursor
cursor_mut
root
root_mut
1 parent f1a296c commit 633d40aCopy full SHA for 633d40a
libs/wavltree/src/lib.rs
@@ -492,20 +492,20 @@ where
492
}
493
494
495
- /// Returns a cursor over the entire tree.
+ /// Returns a cursor to the root of the tree.
496
#[inline]
497
- pub fn cursor(&self) -> Cursor<'_, T> {
+ pub fn root(&self) -> Cursor<'_, T> {
498
Cursor {
499
- current: None,
+ current: self.root,
500
_tree: self,
501
502
503
504
- /// Returns a mutable cursor over the entire tree.
+ /// Returns a mutable cursor to the root of the tree.
505
506
- pub fn cursor_mut(&mut self) -> CursorMut<'_, T> {
+ pub fn root_mut(&mut self) -> CursorMut<'_, T> {
507
CursorMut {
508
509
510
511
0 commit comments