#[repr(C)]pub enum SemVerReq {
AnyStable,
Exact(SemVer64),
Caret(SemVer64),
Tilde(SemVer64),
Range {
min_inclusive: SemVer64,
max_exclusive: SemVer64,
},
}Expand description
Deterministic version requirement evaluated without heap allocation.
Variants§
AnyStable
Matches any stable version (abi_flags == 0).
Exact(SemVer64)
Matches exact (major, minor, patch, abi_flags).
Caret(SemVer64)
Cargo caret requirement (^major.minor.patch):
^1.2.3->>=1.2.3, <2.0.0^0.4.0->>=0.4.0, <0.5.0^0.0.3->>=0.0.3, <0.0.4
Tilde(SemVer64)
Cargo tilde requirement (~major.minor.patch):
>=major.minor.patch, <major.(minor+1).0.
Range
Explicit half-open release range [min_inclusive, max_exclusive).
Implementations§
Trait Implementations§
impl Copy for SemVerReq
impl Eq for SemVerReq
impl StructuralPartialEq for SemVerReq
Auto Trait Implementations§
impl Freeze for SemVerReq
impl RefUnwindSafe for SemVerReq
impl Send for SemVerReq
impl Sync for SemVerReq
impl Unpin for SemVerReq
impl UnsafeUnpin for SemVerReq
impl UnwindSafe for SemVerReq
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