Struct swc_graph_analyzer::GraphAnalyzer
source · pub struct GraphAnalyzer<G>where
G: DepGraph,{ /* private fields */ }
Expand description
Utility to detect cycles in a dependency graph.
Implementations§
source§impl<G> GraphAnalyzer<G>where
G: DepGraph,
impl<G> GraphAnalyzer<G>where
G: DepGraph,
pub fn new(dep_graph: G) -> Self
pub fn load(&mut self, entry: G::ModuleId)
pub fn into_result(self) -> GraphResult<G>
Auto Trait Implementations§
impl<G> Freeze for GraphAnalyzer<G>where
G: Freeze,
impl<G> RefUnwindSafe for GraphAnalyzer<G>
impl<G> Send for GraphAnalyzer<G>
impl<G> Sync for GraphAnalyzer<G>
impl<G> Unpin for GraphAnalyzer<G>
impl<G> UnwindSafe for GraphAnalyzer<G>
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