pub fn load_buffer(path: impl AsRef<Path>) -> Result<TextBuffer>Expand description
Read a UTF-8 file into a TextBuffer.
This is a simple, whole-file read (simple for the early development stage):
- loads entire file into memory
- requires valid UTF-8
Might add higher-level functions for encoding detection and streaming IO later