[−][src]Trait witx::WitxIo
Required methods
pub fn fgets(&self, path: &Path) -> Result<String, WitxError>
[src]
Read the entire file into a String. Used to resolve use
declarations.
pub fn fget_line(
&self,
path: &Path,
line_num: usize
) -> Result<String, WitxError>
[src]
&self,
path: &Path,
line_num: usize
) -> Result<String, WitxError>
Read a line of a file into a String. Used for error reporting.
pub fn canonicalize(&self, path: &Path) -> Result<PathBuf, WitxError>
[src]
Return the canonical (non-symlinked) path of a file. Used to resolve use
declarations.
Implementations on Foreign Types
impl<T: WitxIo + ?Sized> WitxIo for &T
[src]
pub fn fgets(&self, path: &Path) -> Result<String, WitxError>
[src]
pub fn fget_line(
&self,
path: &Path,
line_num: usize
) -> Result<String, WitxError>
[src]
&self,
path: &Path,
line_num: usize
) -> Result<String, WitxError>
pub fn canonicalize(&self, path: &Path) -> Result<PathBuf, WitxError>
[src]
Implementors
impl WitxIo for Filesystem
[src]
pub fn fgets(&self, path: &Path) -> Result<String, WitxError>
[src]
pub fn fget_line(
&self,
path: &Path,
line_num: usize
) -> Result<String, WitxError>
[src]
&self,
path: &Path,
line_num: usize
) -> Result<String, WitxError>