Struct crate_metadata::StrongDependency
source · pub struct StrongDependency {
pub section: StrongSectionRef,
pub relocation: RelocationEntry,
}
Expand description
A representation that the owner A
of (a LoadedSection
object containing) this struct
depends on the given section
B
in this struct.
The dependent section A
is not specifically included here;
since it’s the owner of this struct, it’s implicit that it’s the dependent one.
A dependency is a strong reference to another LoadedSection
B
,
because that other section B
shouldn’t be removed as long as there are still sections (A
) that depend on it.
This is the inverse of the WeakDependency
type.
Fields§
§section: StrongSectionRef
A strong reference to the LoadedSection
B
that the owner of this struct (A
) depends on.
relocation: RelocationEntry
The details of the relocation action that was performed.
Trait Implementations§
source§impl Clone for StrongDependency
impl Clone for StrongDependency
source§fn clone(&self) -> StrongDependency
fn clone(&self) -> StrongDependency
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for StrongDependency
impl Send for StrongDependency
impl Sync for StrongDependency
impl Unpin for StrongDependency
impl !UnwindSafe for StrongDependency
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