Trait glsl_lang_lexer::v2_full::fs::FileSystem

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§

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>

Implementors§

§

impl FileSystem for Std

§

type Error = Error