#[non_exhaustive]pub struct PackageInheritanceEdge {
pub from_package: String,
pub to_package: String,
pub range: SourceLocation,
pub declaration_item: Option<HirId>,
pub source: InheritanceSource,
pub provenance: StashProvenance,
pub confidence: StashConfidence,
}Expand description
Inheritance edge established by @ISA, use parent, or use base.
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.from_package: StringPackage inheriting from the target.
to_package: StringParent package.
range: SourceLocationSource range for the edge.
declaration_item: Option<HirId>HIR item that produced this edge, when available.
source: InheritanceSourceSource shape that produced this edge.
provenance: StashProvenanceHow this edge fact was produced.
confidence: StashConfidenceConfidence in this edge fact.
Trait Implementations§
Source§impl Clone for PackageInheritanceEdge
impl Clone for PackageInheritanceEdge
Source§fn clone(&self) -> PackageInheritanceEdge
fn clone(&self) -> PackageInheritanceEdge
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 moreSource§impl Debug for PackageInheritanceEdge
impl Debug for PackageInheritanceEdge
Source§impl PartialEq for PackageInheritanceEdge
impl PartialEq for PackageInheritanceEdge
Source§fn eq(&self, other: &PackageInheritanceEdge) -> bool
fn eq(&self, other: &PackageInheritanceEdge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PackageInheritanceEdge
impl StructuralPartialEq for PackageInheritanceEdge
Auto Trait Implementations§
impl Freeze for PackageInheritanceEdge
impl RefUnwindSafe for PackageInheritanceEdge
impl Send for PackageInheritanceEdge
impl Sync for PackageInheritanceEdge
impl Unpin for PackageInheritanceEdge
impl UnsafeUnpin for PackageInheritanceEdge
impl UnwindSafe for PackageInheritanceEdge
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