pub trait StructVersion {
// Required methods
fn struct_version() -> u64;
fn struct_features() -> &'static str;
}
Required Methods§
Sourcefn struct_version() -> u64
fn struct_version() -> u64
The version of the structure which implements this trait. After any change in the structure or its dependencies which may affect the ABI, this version should be incremented.
Sourcefn struct_features() -> &'static str
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.