Skip to main content

GameVersion

Trait GameVersion 

Source
pub trait GameVersion: Sized {
    const NAME: &'static str;

    // Required method
    fn from_lang_version(lang_id: u16, version: &str) -> Option<Self>;

    // Provided method
    fn detect(module: &PeView<'_>) -> Result<Self, DetectError> { ... }
}

Required Associated Constants§

Source

const NAME: &'static str

Required Methods§

Source

fn from_lang_version(lang_id: u16, version: &str) -> Option<Self>

Provided Methods§

Source

fn detect(module: &PeView<'_>) -> Result<Self, DetectError>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§