pub struct DependencyConstraintRange {
pub lower: Option<DependencyVersionBound>,
pub upper: Option<DependencyVersionBound>,
}Expand description
What: Store the deterministic intersection of dependency version requirements.
Inputs:
- Zero or more
=,>,>=,<, or<=requirements for one resolved package.
Output:
- Exposes the most restrictive compatible lower and upper bounds.
Details:
- Equal requirements are represented by equal inclusive lower and upper bounds. An absent bound means no requirement on that side of the interval.
Fields§
§lower: Option<DependencyVersionBound>Most restrictive compatible lower bound, if any.
upper: Option<DependencyVersionBound>Most restrictive compatible upper bound, if any.
Trait Implementations§
Source§impl Clone for DependencyConstraintRange
impl Clone for DependencyConstraintRange
Source§fn clone(&self) -> DependencyConstraintRange
fn clone(&self) -> DependencyConstraintRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DependencyConstraintRange
impl Debug for DependencyConstraintRange
Source§impl Default for DependencyConstraintRange
impl Default for DependencyConstraintRange
Source§fn default() -> DependencyConstraintRange
fn default() -> DependencyConstraintRange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DependencyConstraintRange
impl<'de> Deserialize<'de> for DependencyConstraintRange
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
impl Eq for DependencyConstraintRange
impl StructuralPartialEq for DependencyConstraintRange
Auto Trait Implementations§
impl Freeze for DependencyConstraintRange
impl RefUnwindSafe for DependencyConstraintRange
impl Send for DependencyConstraintRange
impl Sync for DependencyConstraintRange
impl Unpin for DependencyConstraintRange
impl UnsafeUnpin for DependencyConstraintRange
impl UnwindSafe for DependencyConstraintRange
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.