Skip to main content

Version

Trait Version 

Source
pub trait Version:
    Copy
    + Clone
    + Default
    + 'static {
    const NUMBER: u32;
}
Available on crate feature std only.
Expand description

Type-safe version marker trait.

Each schema version is represented as a zero-sized type implementing this trait. The version number is available at compile time via the associated constant.

Required Associated Constants§

Source

const NUMBER: u32

The version number (5, 6, 7, 8, etc.)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§