pub trait WitxIo {
    fn fgets(&self, path: &Path) -> Result<String, WitxError>;
fn fget_line(
        &self,
        path: &Path,
        line_num: usize
    ) -> Result<String, WitxError>;
fn canonicalize(&self, path: &Path) -> Result<PathBuf, WitxError>; }

Required methods

Read the entire file into a String. Used to resolve use declarations.

Read a line of a file into a String. Used for error reporting.

Return the canonical (non-symlinked) path of a file. Used to resolve use declarations.

Implementations on Foreign Types

Implementors