pub enum DependencyReference {
Version(VersionReq),
GitCommit(GitCommitReference),
GitBranch(GitBranchReference),
GitTag(GitTagReference),
Path(String),
Unsupported(String),
}
Expand description
Models how a dependency is expressed in Cargo.toml.
Variants§
Version(VersionReq)
GitCommit(GitCommitReference)
GitBranch(GitBranchReference)
GitTag(GitTagReference)
Path(String)
Unsupported(String)
Implementations§
Source§impl DependencyReference
impl DependencyReference
pub fn is_framework_version(&self, version: &FrameworkVersion) -> bool
Trait Implementations§
Source§impl Clone for DependencyReference
impl Clone for DependencyReference
Source§fn clone(&self) -> DependencyReference
fn clone(&self) -> DependencyReference
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DependencyReference
impl Debug for DependencyReference
Source§impl PartialEq for DependencyReference
impl PartialEq for DependencyReference
impl Eq for DependencyReference
impl StructuralPartialEq for DependencyReference
Auto Trait Implementations§
impl Freeze for DependencyReference
impl RefUnwindSafe for DependencyReference
impl Send for DependencyReference
impl Sync for DependencyReference
impl Unpin for DependencyReference
impl UnwindSafe for DependencyReference
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.