pub enum Op {
Exact,
Greater,
GreaterEq,
Less,
LessEq,
Tilde,
Caret,
Wildcard,
}Expand description
Versioning comparison operators used in a Requirement: =, >,
>=, <, <=, ~, ^, *.
Variants§
Exact
A matching Versioning exactly equals the requirement.
Greater
A matching Versioning must be strictly greater than the requirement.
GreaterEq
A matching Versioning must be greater than or equal to the requirement.
Less
A matching Versioning must be strictly less than the requirement.
LessEq
A matching Versioning must be less than or equal to the requirement.
Tilde
A matching Versioning may have a patch (or last component of the) version
greater than or equal to the requirement.
Caret
A matching Versioning has its first non-zero component equal to the
requirement, and all other components greater than or equal to the
requirement.
Wildcard
Any Versioning matches the requirement.
Trait Implementations§
impl Copy for Op
impl Eq for Op
impl StructuralEq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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