// }
// ```
//
-// Since Rust doesn't acutally have dependent types and polymorphic recursion,
+// Since Rust doesn't actually have dependent types and polymorphic recursion,
// we make do with lots of unsafety.
use alloc::heap;
}
self.node.as_leaf_mut().len -= 1;
+ left_node.as_leaf_mut().len += right_len as u16 + 1;
+
if self.node.height > 1 {
ptr::copy_nonoverlapping(
right_node.cast_unchecked().as_internal().edges.as_ptr(),
);
}
- left_node.as_leaf_mut().len += right_len as u16 + 1;
-
Handle::new_edge(self.node, self.idx)
}
}