Trait ApiVersion

Source
pub trait ApiVersion {
    // Required method
    fn version_str() -> &'static str;
}
Expand description

Trait to get the version of the API.

Required Methods§

Source

fn version_str() -> &'static str

Get the version of the API.

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§