Skip to main content

PlatformType

Trait PlatformType 

Source
pub trait PlatformType: Clone + Default {
    // Required method
    fn platform_id() -> &'static str;
}
Expand description

Global trait that specify the required interface for typesafe enumeration of platforms.

Required Methods§

Source

fn platform_id() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§