[][src]Trait pathfinder_resources::ResourceLoader

pub trait ResourceLoader {
    fn slurp(&self, path: &str) -> Result<Vec<u8>, IOError>;
}

Required methods

fn slurp(&self, path: &str) -> Result<Vec<u8>, IOError>

This is deliberately not a Path, because these are virtual paths that do not necessarily correspond to real paths on a filesystem.

Loading content...

Implementors

impl ResourceLoader for EmbeddedResourceLoader[src]

impl ResourceLoader for FilesystemResourceLoader[src]

Loading content...