Trait zed2::languages::LocalFile

source ·
pub trait LocalFile: File {
    // Required methods
    fn abs_path(&self, cx: &AppContext) -> PathBuf;
    fn load(&self, cx: &AppContext) -> Task<Result<String, Error>>;
    fn buffer_reloaded(
        &self,
        buffer_id: u64,
        version: &Global,
        fingerprint: HashMatrix,
        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, Error>>

source

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

Implementations on Foreign Types§

source§

impl LocalFile for File

source§

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

source§

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

source§

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

Implementors§