tinymist_vfs

Trait FsProvider

Source
pub trait FsProvider {
    // Required methods
    fn file_path(&self, id: TypstFileId) -> FileResult<PathResolution>;
    fn read(&self, id: TypstFileId) -> FileResult<Bytes>;
    fn read_source(&self, id: TypstFileId) -> FileResult<Source>;
}

Required Methods§

Source

fn file_path(&self, id: TypstFileId) -> FileResult<PathResolution>

Arbitrary one of file path corresponding to the given id.

Source

fn read(&self, id: TypstFileId) -> FileResult<Bytes>

Source

fn read_source(&self, id: TypstFileId) -> FileResult<Source>

Implementors§