Trait swc_graph_analyzer::DepGraph

source ·
pub trait DepGraph {
    type ModuleId: Debug + Copy + Eq + Hash + Ord;

    // Required method
    fn deps_of(&self, module_id: Self::ModuleId) -> Vec<Self::ModuleId>;
}

Required Associated Types§

Required Methods§

source

fn deps_of(&self, module_id: Self::ModuleId) -> Vec<Self::ModuleId>

Implementations on Foreign Types§

source§

impl<'a, T: 'a + DepGraph + ?Sized> DepGraph for &'a T

§

type ModuleId = <T as DepGraph>::ModuleId

source§

fn deps_of(&self, module_id: Self::ModuleId) -> Vec<Self::ModuleId>

source§

impl<T: DepGraph + ?Sized> DepGraph for Box<T>

§

type ModuleId = <T as DepGraph>::ModuleId

source§

fn deps_of(&self, module_id: Self::ModuleId) -> Vec<Self::ModuleId>

source§

impl<T: DepGraph + ?Sized> DepGraph for Rc<T>

§

type ModuleId = <T as DepGraph>::ModuleId

source§

fn deps_of(&self, module_id: Self::ModuleId) -> Vec<Self::ModuleId>

source§

impl<T: DepGraph + ?Sized> DepGraph for Arc<T>

§

type ModuleId = <T as DepGraph>::ModuleId

source§

fn deps_of(&self, module_id: Self::ModuleId) -> Vec<Self::ModuleId>

Implementors§