Struct cargo_edit::PathSource
source · #[non_exhaustive]pub struct PathSource {
pub path: PathBuf,
pub version: Option<String>,
}
Expand description
Dependency from a local path
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.path: PathBuf
Local, absolute path
version: Option<String>
Version requirement for when published
Implementations§
Trait Implementations§
source§impl Clone for PathSource
impl Clone for PathSource
source§fn clone(&self) -> PathSource
fn clone(&self) -> PathSource
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 PathSource
impl Debug for PathSource
source§impl Display for PathSource
impl Display for PathSource
source§impl From<PathSource> for Source
impl From<PathSource> for Source
source§fn from(inner: PathSource) -> Self
fn from(inner: PathSource) -> Self
Converts to this type from the input type.
source§impl Hash for PathSource
impl Hash for PathSource
source§impl Ord for PathSource
impl Ord for PathSource
source§fn cmp(&self, other: &PathSource) -> Ordering
fn cmp(&self, other: &PathSource) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PathSource
impl PartialEq for PathSource
source§impl PartialOrd for PathSource
impl PartialOrd for PathSource
impl Eq for PathSource
impl StructuralPartialEq for PathSource
Auto Trait Implementations§
impl Freeze for PathSource
impl RefUnwindSafe for PathSource
impl Send for PathSource
impl Sync for PathSource
impl Unpin for PathSource
impl UnwindSafe for PathSource
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.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.