Trait okane_core::load::FileSystem

source ·
pub trait FileSystem {
    // Required methods
    fn canonicalize_path<'a>(&self, path: &'a Path) -> Cow<'a, Path>;
    fn file_content_utf8<P: AsRef<Path>>(
        &self,
        path: P,
    ) -> Result<String, Error>;
}

Required Methods§

source

fn canonicalize_path<'a>(&self, path: &'a Path) -> Cow<'a, Path>

canonicalize the given path.

source

fn file_content_utf8<P: AsRef<Path>>(&self, path: P) -> Result<String, Error>

Load the given path and returns it as UTF-8 String.

Object Safety§

This trait is not object safe.

Implementors§