pub struct PackageOccurrence {
pub file_path: PathBuf,
pub file_type: FileType,
pub version: String,
pub line_number: Option<usize>,
pub has_upper_bound: bool,
}Expand description
Represents a single occurrence of a package in a file
Fields§
§file_path: PathBufPath to the file containing this package
file_type: FileTypeType of the dependency file
version: StringVersion string as it appears in the file
line_number: Option<usize>Line number where the package is defined (if available)
has_upper_bound: boolWhether this package has upper bound constraints (e.g., <3.0)
Trait Implementations§
Source§impl Clone for PackageOccurrence
impl Clone for PackageOccurrence
Source§fn clone(&self) -> PackageOccurrence
fn clone(&self) -> PackageOccurrence
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 PackageOccurrence
impl RefUnwindSafe for PackageOccurrence
impl Send for PackageOccurrence
impl Sync for PackageOccurrence
impl Unpin for PackageOccurrence
impl UnsafeUnpin for PackageOccurrence
impl UnwindSafe for PackageOccurrence
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