pub struct DependencyGraph { /* private fields */ }Implementations§
Source§impl DependencyGraph
impl DependencyGraph
Sourcepub fn new(edges: impl IntoIterator<Item = Dependency>) -> Self
pub fn new(edges: impl IntoIterator<Item = Dependency>) -> Self
Index the dependencies in the order they were recorded. pg_depend keeps a dependency that two recordings of one object share, such as a routine’s argument type that its body names again, and the deletion search visits the object once either way.
pub fn edges(&self) -> &[Dependency]
Sourcepub fn references_of(
&self,
object: ObjectAddress,
) -> impl Iterator<Item = &Dependency>
pub fn references_of( &self, object: ObjectAddress, ) -> impl Iterator<Item = &Dependency>
What object depends on; for a whole object, what any of its columns depends on too.
Sourcepub fn dependents_of(
&self,
object: ObjectAddress,
) -> impl Iterator<Item = &Dependency>
pub fn dependents_of( &self, object: ObjectAddress, ) -> impl Iterator<Item = &Dependency>
What depends on object; for a whole object, what depends on any of its columns too.
Trait Implementations§
Source§impl Clone for DependencyGraph
impl Clone for DependencyGraph
Source§impl Debug for DependencyGraph
impl Debug for DependencyGraph
Auto Trait Implementations§
impl Freeze for DependencyGraph
impl RefUnwindSafe for DependencyGraph
impl Send for DependencyGraph
impl Sync for DependencyGraph
impl Unpin for DependencyGraph
impl UnsafeUnpin for DependencyGraph
impl UnwindSafe for DependencyGraph
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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