# Trait Compatible

    pub trait Compatible<Rhs = Self>: Sized {
        // Required method
        fn compatible(&self, other: Rhs) -> bool;
    }

Expand description

A trait for determining whether versions are compatible.

## Required Methods§

#### fn compatible(&self, other: Rhs) -> bool

return `true` if this version is field-compatible with `other`.

This is kind of poorly defined, but basically means ‘same major version, greater than or equal minor version’.

## 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.

## Implementations on Foreign Types§

§

### impl Compatible for u16

§

#### fn compatible(&self, other: u16) -> bool

## Implementors§

§

### impl Compatible for MajorMinor

§

### impl Compatible for Version16Dot16

§

### impl Compatible<(u16, u16)> for MajorMinor

§

### impl Compatible<(u16, u16)> for Version16Dot16