Trait glsl_lang_pp::processor::fs::FileSystem

source ·
pub trait FileSystem {
    type Error: Error + 'static;

    // Required methods
    fn canonicalize(&self, path: &Path) -> Result<PathBuf, Self::Error>;
    fn exists(&self, path: &Path) -> bool;
    fn read(&self, path: &Path) -> Result<Cow<'_, str>, Self::Error>;
}

Required Associated Types§

source

type Error: Error + 'static

Required Methods§

source

fn canonicalize(&self, path: &Path) -> Result<PathBuf, Self::Error>

source

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

source

fn read(&self, path: &Path) -> Result<Cow<'_, str>, Self::Error>

Implementors§