pub struct VariableRelationshipBuilder { /* private fields */ }
Expand description
Builder for constructing variable relationship graphs
Implementations§
Source§impl VariableRelationshipBuilder
impl VariableRelationshipBuilder
Sourcepub fn add_allocations(
self,
allocations: &[AllocationInfo],
registry: &HashMap<usize, VariableInfo>,
) -> Self
pub fn add_allocations( self, allocations: &[AllocationInfo], registry: &HashMap<usize, VariableInfo>, ) -> Self
Add allocations to the graph
Sourcepub fn detect_references(self) -> Self
pub fn detect_references(self) -> Self
Detect reference relationships between variables
Sourcepub fn detect_scope_relationships(self) -> Self
pub fn detect_scope_relationships(self) -> Self
Detect scope-based relationships
Sourcepub fn detect_circular_references(self) -> Self
pub fn detect_circular_references(self) -> Self
Detect circular references
Sourcepub fn build_graph(self) -> VariableRelationshipGraph
pub fn build_graph(self) -> VariableRelationshipGraph
Build the final relationship graph
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VariableRelationshipBuilder
impl RefUnwindSafe for VariableRelationshipBuilder
impl Send for VariableRelationshipBuilder
impl Sync for VariableRelationshipBuilder
impl Unpin for VariableRelationshipBuilder
impl UnwindSafe for VariableRelationshipBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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