pub struct VersionConstraint {
pub op: VersionOp,
pub version: SmolStr,
pub range: TextRange,
}Expand description
One version constraint: an operator and the version it compares against.
Fields§
§op: VersionOp§version: SmolStrThe version exactly as written, trimmed (4.1.0, 1.2-3). Text, not a
parsed version: how two versions order is the consumer’s policy.
range: TextRangeThe whole constraint’s source range, operator included.
Trait Implementations§
Source§impl Clone for VersionConstraint
impl Clone for VersionConstraint
Source§impl Debug for VersionConstraint
impl Debug for VersionConstraint
impl Eq for VersionConstraint
Source§impl Hash for VersionConstraint
impl Hash for VersionConstraint
Source§impl PartialEq for VersionConstraint
impl PartialEq for VersionConstraint
impl StructuralPartialEq for VersionConstraint
Auto Trait Implementations§
impl Freeze for VersionConstraint
impl RefUnwindSafe for VersionConstraint
impl Send for VersionConstraint
impl Sync for VersionConstraint
impl Unpin for VersionConstraint
impl UnsafeUnpin for VersionConstraint
impl UnwindSafe for VersionConstraint
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