pub trait SourceRead {
    // Required methods
    fn working_dir(&self) -> &Path;
    fn base_dir(&self) -> Option<&Path>;
    fn read_file(&self, path: &Path) -> Result<String, Error>;
    fn read_dir(&self, path: &Path) -> Result<Vec<PathBuf, Global>, Error>;
    fn is_file(&self, path: &Path) -> bool;
    fn is_dir(&self, path: &Path) -> bool;
    fn canonicalize_import(
        &self,
        key: &ImportKey
    ) -> Result<(PathBuf, String), Error>;
}

Required Methods§

source

fn working_dir(&self) -> &Path

source

fn base_dir(&self) -> Option<&Path>

source

fn read_file(&self, path: &Path) -> Result<String, Error>

source

fn read_dir(&self, path: &Path) -> Result<Vec<PathBuf, Global>, Error>

source

fn is_file(&self, path: &Path) -> bool

source

fn is_dir(&self, path: &Path) -> bool

source

fn canonicalize_import( &self, key: &ImportKey ) -> Result<(PathBuf, String), Error>

Implementors§