pub trait Versioned {
    // Required method
    fn version(&self) -> u64;

    // Provided method
    fn is_greater_than_or_equal(&self, version: u64) -> bool { ... }
}
Expand description

Trait indicating that the item is versioned.

Required Methods§

source

fn version(&self) -> u64

Retrieve the version for this item instance.

Provided Methods§

source

fn is_greater_than_or_equal(&self, version: u64) -> bool

Determine if this item’s version is greater than or equal to the provided version parameter.

Implementors§