StaticVersionType

Trait StaticVersionType 

Source
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§

Source

fn instance() -> Self

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.

Implementors§

Source§

impl<const MAJOR: u16, const MINOR: u16> StaticVersionType for StaticVersion<MAJOR, MINOR>

Source§

const MAJOR: u16 = MAJOR

Source§

const MINOR: u16 = MINOR