pub trait StaticVersionType:
Sync
+ Send
+ Clone
+ Copy
+ Debug
+ Sealed {
const MAJOR: u16;
const MINOR: u16;
const VERSION: Version = _;
// Required method
fn instance() -> Self;
// Provided method
fn version() -> Version { ... }
}Required Associated Constants§
Provided Associated Constants§
Required Methods§
Provided Methods§
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.