HasPrevious

Trait HasPrevious 

Source
pub trait HasPrevious: Version {
    type Previous: Version;
}
Expand description

Trait for statically enforcing backwards compatibility.

Required Associated Types§

Source

type Previous: Version

API version which immediately precedes this one.

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§