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§
Sourcefn file_path(&self, id: TypstFileId) -> FileResult<PathResolution>
fn file_path(&self, id: TypstFileId) -> FileResult<PathResolution>
Arbitrary one of file path corresponding to the given id
.