pub struct VersionRangeSet(pub Vec<VersionRange>);
Expand description
Collection of ranges.
Tuple Fields§
§0: Vec<VersionRange>
Implementations§
source§impl VersionRangeSet
impl VersionRangeSet
pub fn satisfies(&self, version: &Version) -> bool
sourcepub fn intersects_set(&self, other: &VersionRangeSet) -> bool
pub fn intersects_set(&self, other: &VersionRangeSet) -> bool
Gets if this set overlaps the other set.
Trait Implementations§
source§impl Clone for VersionRangeSet
impl Clone for VersionRangeSet
source§fn clone(&self) -> VersionRangeSet
fn clone(&self) -> VersionRangeSet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VersionRangeSet
impl Debug for VersionRangeSet
source§impl<'de> Deserialize<'de> for VersionRangeSet
impl<'de> Deserialize<'de> for VersionRangeSet
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for VersionRangeSet
impl Display for VersionRangeSet
source§impl Hash for VersionRangeSet
impl Hash for VersionRangeSet
source§impl PartialEq for VersionRangeSet
impl PartialEq for VersionRangeSet
source§impl Serialize for VersionRangeSet
impl Serialize for VersionRangeSet
impl Eq for VersionRangeSet
impl StructuralPartialEq for VersionRangeSet
Auto Trait Implementations§
impl Freeze for VersionRangeSet
impl RefUnwindSafe for VersionRangeSet
impl Send for VersionRangeSet
impl Sync for VersionRangeSet
impl Unpin for VersionRangeSet
impl UnwindSafe for VersionRangeSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)