From e884f57e376ee8c62786d197e13d4e5b0dad5520 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Wed, 27 Dec 2023 10:47:49 -0800 Subject: Add some TODOs for important enhancements. --- src/rope.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/rope.rs b/src/rope.rs index 3a01e8b..be56568 100644 --- a/src/rope.rs +++ b/src/rope.rs @@ -57,6 +57,7 @@ impl Node { } fn print_line(&self, out: &mut dyn Write, n: usize) -> Result<(), std::io::Error> { + // TODO: escape unprintable characters match self { Node::Leaf(v) => { let mut nl_count = 0; @@ -149,6 +150,7 @@ impl Rope { } rope = rope.concat(Rope(Rc::new(Node::Leaf(buf)))); } + // TODO: rebalance return Ok(rope); } -- cgit v1.3.1