Skip to main content

ModFiles

Trait ModFiles 

Source
pub trait ModFiles {
    // Required method
    fn read(&self, source: &str, path: &str) -> Result<String, String>;
}
Expand description

What reads a mod’s files for its sources.

Required Methods§

Source

fn read(&self, source: &str, path: &str) -> Result<String, String>

File path, written in source source (beside it): its text, or why it can’t be read.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§