Struct syntax::codemap::RealFileLoader
[−]
[src]
pub struct RealFileLoader;
🔬 This is a nightly-only experimental API. (
rustc_private
)A FileLoader that uses std::fs to load real files.
Trait Implementations
impl FileLoader for RealFileLoader
[src]
fn file_exists(&self, path: &Path) -> bool
🔬 This is a nightly-only experimental API. (
rustc_private
)Query the existence of a file.
fn abs_path(&self, path: &Path) -> Option<PathBuf>
🔬 This is a nightly-only experimental API. (
rustc_private
)Return an absolute path to a file, if possible.
fn read_file(&self, path: &Path) -> Result<String>
🔬 This is a nightly-only experimental API. (
rustc_private
)Read the contents of an UTF-8 file into memory.