useanyhow::Error;useropey::Rope;usestd::{env,fs::File,io::BufReader,path::PathBuf};pubstructBuffer{pubcontents:Rope,}implBuffer{pubfnload(path:PathBuf)->Result<Self,Error>{letcurrent_dir=env::current_dir()?;letcontents=Rope::from_reader(BufReader::new(File::open(path)?))?;// TODO: create if not foundOk(Buffer{contents})}}