pub enum SourceCoordinates<'a> {
Git {
git: &'a str,
path: Option<&'a str>,
},
Path(&'a Path),
}Expand description
The identity coordinates of a ResolvedSource, used for cycle
detection. Excludes version and selector information.
Variants§
Git
A Git source, identified by repository URL and optional sub-path.
Fields
Path(&'a Path)
A local path source, identified by its resolved directory.
Trait Implementations§
Source§impl<'a> Clone for SourceCoordinates<'a>
impl<'a> Clone for SourceCoordinates<'a>
Source§fn clone(&self) -> SourceCoordinates<'a>
fn clone(&self) -> SourceCoordinates<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SourceCoordinates<'a>
Source§impl<'a> Debug for SourceCoordinates<'a>
impl<'a> Debug for SourceCoordinates<'a>
impl<'a> Eq for SourceCoordinates<'a>
Source§impl<'a> PartialEq for SourceCoordinates<'a>
impl<'a> PartialEq for SourceCoordinates<'a>
impl<'a> StructuralPartialEq for SourceCoordinates<'a>
Auto Trait Implementations§
impl<'a> Freeze for SourceCoordinates<'a>
impl<'a> RefUnwindSafe for SourceCoordinates<'a>
impl<'a> Send for SourceCoordinates<'a>
impl<'a> Sync for SourceCoordinates<'a>
impl<'a> Unpin for SourceCoordinates<'a>
impl<'a> UnsafeUnpin for SourceCoordinates<'a>
impl<'a> UnwindSafe for SourceCoordinates<'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§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.