pub enum PinStyle {
Sha,
Tag,
Branch,
Latest,
Partial,
}Expand description
How a pin (a project: ref, or a component: version) is classified.
Variants§
Sha
A 40-character commit SHA.
Tag
An exact published tag (project:) or release name (component:).
Branch
Honest-unknown: not a SHA, not an exact tag/release, not ~latest, not
partial-semver-shaped. Also covers a git branch ref.
Latest
Literal ~latest (component: only) — highest published non-prerelease semver
release.
Partial
A partial semantic version, e.g. 1.2 or 1 (component: only).
Trait Implementations§
impl Eq for PinStyle
impl StructuralPartialEq for PinStyle
Auto Trait Implementations§
impl Freeze for PinStyle
impl RefUnwindSafe for PinStyle
impl Send for PinStyle
impl Sync for PinStyle
impl Unpin for PinStyle
impl UnsafeUnpin for PinStyle
impl UnwindSafe for PinStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.