pub struct Dependency {
pub name: String,
pub version_spec: VersionSpec,
pub source_file: PathBuf,
pub line_number: usize,
pub original_line: String,
}Expand description
A dependency as parsed from a file
Fields§
§name: StringPackage name (normalized to lowercase)
version_spec: VersionSpecVersion specification as parsed
source_file: PathBufSource file this dependency was found in
line_number: usizeLine number in the source file (1-indexed)
original_line: StringOriginal line text (for updating)
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§fn clone(&self) -> Dependency
fn clone(&self) -> Dependency
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
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