pub trait VersionMatcher: Send + Sync {
// Required method
fn matches(&self, version: &ApiVersion) -> bool;
// Provided method
fn priority(&self) -> i32 { ... }
}Expand description
Matcher for version selection
Required Methods§
Sourcefn matches(&self, version: &ApiVersion) -> bool
fn matches(&self, version: &ApiVersion) -> bool
Check if a version matches