pub struct PackageAlignment {
pub package_name: String,
pub highest_version: String,
pub occurrences: Vec<PackageOccurrence>,
pub lang: Lang,
}Expand description
Result of alignment analysis for a single package
Fields§
§package_name: StringName of the package
highest_version: StringThe highest version found across all occurrences
occurrences: Vec<PackageOccurrence>All occurrences of this package
lang: LangLanguage/ecosystem of this package
Implementations§
Source§impl PackageAlignment
impl PackageAlignment
Sourcepub fn has_misalignment(&self) -> bool
pub fn has_misalignment(&self) -> bool
Returns true if any occurrence is misaligned (not at highest version)
Sourcepub fn misaligned_occurrences(&self) -> Vec<&PackageOccurrence>
pub fn misaligned_occurrences(&self) -> Vec<&PackageOccurrence>
Returns only the misaligned occurrences (excluding those at highest version or with constraints)
Trait Implementations§
Source§impl Clone for PackageAlignment
impl Clone for PackageAlignment
Source§fn clone(&self) -> PackageAlignment
fn clone(&self) -> PackageAlignment
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 PackageAlignment
impl RefUnwindSafe for PackageAlignment
impl Send for PackageAlignment
impl Sync for PackageAlignment
impl Unpin for PackageAlignment
impl UnsafeUnpin for PackageAlignment
impl UnwindSafe for PackageAlignment
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