pub struct DependencyVersionConstraint {
pub relationship: VersionRelationship,
pub version: PackageVersion,
}Expand description
Represents a version constraint on a given package.
Fields§
§relationship: VersionRelationship§version: PackageVersionTrait Implementations§
source§impl Clone for DependencyVersionConstraint
impl Clone for DependencyVersionConstraint
source§fn clone(&self) -> DependencyVersionConstraint
fn clone(&self) -> DependencyVersionConstraint
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 DependencyVersionConstraint
impl Debug for DependencyVersionConstraint
source§impl PartialEq for DependencyVersionConstraint
impl PartialEq for DependencyVersionConstraint
source§fn eq(&self, other: &DependencyVersionConstraint) -> bool
fn eq(&self, other: &DependencyVersionConstraint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DependencyVersionConstraint
Auto Trait Implementations§
impl RefUnwindSafe for DependencyVersionConstraint
impl Send for DependencyVersionConstraint
impl Sync for DependencyVersionConstraint
impl Unpin for DependencyVersionConstraint
impl UnwindSafe for DependencyVersionConstraint
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