Versioned

Trait Versioned 

Source
pub trait Versioned {
    // Required methods
    fn version(&self) -> &str;
    fn is_compatible_with(&self, other_version: &str) -> bool;
}
Expand description

Versioned trait for objects with version information

Required Methods§

Source

fn version(&self) -> &str

Get version

Source

fn is_compatible_with(&self, other_version: &str) -> bool

Check compatibility with another version

Implementors§