pub trait RangeExt<V>where
    V: Version + From<SemanticVersion>,{
    // Required methods
    fn subset_of(&self, other: &Range<V>) -> bool;
    fn possible(&self, other: &Range<V>) -> bool;
}
Expand description

An extension of Range trait which allows extra functionality for comparing semantic version ranges.

Required Methods§

source

fn subset_of(&self, other: &Range<V>) -> bool

If true, version pair is redundant, pick the larger range.

source

fn possible(&self, other: &Range<V>) -> bool

If true, version pair is invalid, just feed the empty range.

Implementations on Foreign Types§

source§

impl RangeExt<SemanticVersion> for Range<SemanticVersion>

source§

fn subset_of(&self, other: &Self) -> bool

source§

fn possible(&self, other: &Self) -> bool

Implementors§