pub enum Constraint {
Semver(VersionReq),
Latest,
RefPin(String),
}Expand description
A dependency entry’s version, read.
Variants§
Semver(VersionReq)
Semver requirement (^1.0, >=0.5.0, ~2.1, an exact version).
Latest
Any version, prefer newest.
RefPin(String)
Branch or commit pin: no semver resolution.
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§impl Debug for Constraint
impl Debug for Constraint
Auto Trait Implementations§
impl Forget for Constraint
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnsafeUnpin for Constraint
impl UnwindSafe for Constraint
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