pub enum Relation {
Earlier,
EarlierEqual,
Equal,
LaterEqual,
Later,
}
Expand description
Specifies the comparator used to compare two Version
s.
Variants§
Earlier
The first version must be strictly earlier than the second (a < b
).
EarlierEqual
The first version must be earlier than or equal to the second (a <= b
).
Equal
The first version must be equal to the second (a == b
).
LaterEqual
The first version must be later than or equal to the second (a >= b
).
Later
The first version must be strictly later than the second (a > b
).
Trait Implementations§
impl Copy for Relation
impl Eq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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