Skip to main content

GameInfoProvider

Trait GameInfoProvider 

Source
pub trait GameInfoProvider {
    // Required method
    fn get_search_paths<P: AsRef<Path>>(
        path: P,
    ) -> Option<Vec<(String, String)>>;
}
Expand description

Provides parsing capabilities for gameinfo.txt to extract search paths.

Required Methods§

Source

fn get_search_paths<P: AsRef<Path>>(path: P) -> Option<Vec<(String, String)>>

Parses the given gameinfo.txt file and returns a list of search paths. The return value is a list of tuples: (search_path_id, physical_path).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§