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§
Provided Methods§
Sourcefn is_greater_than_or_equal(&self, version: u64) -> bool
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.