pub enum Chosen<'a> {
Pin(&'a str),
Tag(&'a str),
Locked,
Untagged,
}Expand description
What a package ends at.
Variants§
Pin(&'a str)
A branch or commit every constraint holds at.
Tag(&'a str)
One of the tags offered.
Locked
The locked version, which is kept (keeps_lock) whether or not the repository still has
its tag.
Untagged
No version tags: the default branch.
Trait Implementations§
impl<'a> Eq for Chosen<'a>
impl<'a> StructuralPartialEq for Chosen<'a>
Auto Trait Implementations§
impl<'a> Forget for Chosen<'a>
impl<'a> Freeze for Chosen<'a>
impl<'a> RefUnwindSafe for Chosen<'a>
impl<'a> Send for Chosen<'a>
impl<'a> Sync for Chosen<'a>
impl<'a> Unpin for Chosen<'a>
impl<'a> UnsafeUnpin for Chosen<'a>
impl<'a> UnwindSafe for Chosen<'a>
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.