pub struct DependencyGraphs {
pub definition_deps: HashMap<String, HashSet<String>>,
pub all_deps: HashMap<String, HashSet<String>>,
}Expand description
Split dependency graphs: definition-level deps vs all deps (including impl blocks).
definition_deps contains only dependencies from struct/type/fn/extern definitions.
all_deps additionally includes dependencies from impl blocks merged into the self type.
The split is needed because impl block deps (e.g., ObjC category extensions referencing types from other frameworks) should not cause the base type to be removed during dependency closure in the ownership phase.
Fields§
§definition_deps: HashMap<String, HashSet<String>>Dependencies from definitions only (struct, type, fn, extern). Used for dependency closure (removing symbols whose deps are unavailable).
all_deps: HashMap<String, HashSet<String>>All dependencies including impl block references. Used for BFS reachability computation.
Auto Trait Implementations§
impl Freeze for DependencyGraphs
impl RefUnwindSafe for DependencyGraphs
impl Send for DependencyGraphs
impl Sync for DependencyGraphs
impl Unpin for DependencyGraphs
impl UnsafeUnpin for DependencyGraphs
impl UnwindSafe for DependencyGraphs
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more