pub trait LocalFile: File {
// Required methods
fn abs_path(&self, cx: &AppContext) -> PathBuf;
fn load(&self, cx: &AppContext) -> Task<Result<String>>;
fn buffer_reloaded(
&self,
buffer_id: u64,
version: &Global,
fingerprint: RopeFingerprint,
line_ending: LineEnding,
mtime: SystemTime,
cx: &mut AppContext
);
}
Required Methods§
sourcefn abs_path(&self, cx: &AppContext) -> PathBuf
fn abs_path(&self, cx: &AppContext) -> PathBuf
Returns the absolute path of this file.