wip: use stateful buffer

This commit is contained in:
Jonathan Kelley committed 2022-06-27 13:36:41 -04:00
1 parent 79b475798d
commit a2a194ca40
4 files changed
+29 -6

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
use std::fmt::Result;
struct Buffer {
buf: String,
cur_line: usize,
cur_indent: usize,
}
impl Buffer {
fn write_tabs(&mut self, num: usize) -> Result {
todo!()
}
fn new_line(&mut self) -> Result {
todo!()
}
}