Trait language2::LocalFile

source ·
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§

source

fn abs_path(&self, cx: &AppContext) -> PathBuf

Returns the absolute path of this file.

source

fn load(&self, cx: &AppContext) -> Task<Result<String>>

source

fn buffer_reloaded( &self, buffer_id: u64, version: &Global, fingerprint: RopeFingerprint, line_ending: LineEnding, mtime: SystemTime, cx: &mut AppContext )

Implementors§