StructVersion

Trait StructVersion 

Source
pub trait StructVersion {
    // Required methods
    fn struct_version() -> &'static str;
    fn struct_features() -> &'static str;
}

Required Methods§

Source

fn struct_version() -> &'static str

The version of the structure which implements this trait.

Source

fn struct_features() -> &'static str

The features enabled during compilation of the structure implementing this trait. Different features between the plugin and the host may cause ABI incompatibility even if the structure version is the same. Use concat_enabled_features! to generate this string

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§