pub struct ModuleGraph { /* private fields */ }Implementations§
Source§impl ModuleGraph
impl ModuleGraph
pub fn new() -> Self
pub fn ensure_module(&mut self, path: &Path) -> &mut ModuleNode
pub fn add_import(&mut self, importer: &Path, imported: &Path)
pub fn set_self_accepting(&mut self, path: &Path, accepting: bool)
pub fn set_imports(&mut self, importer: &Path, imports: &[PathBuf])
pub fn contains(&self, path: &Path) -> bool
pub fn module_paths(&self) -> Vec<PathBuf>
pub fn propagate_update(&self, changed: &Path) -> HmrDecision
pub fn update_plan(&self, changed: &Path) -> Result<UpdatePlan, String>
pub fn update_plan_from_importers( &self, changed: &Path, ) -> Result<UpdatePlan, String>
pub fn propagate_update_from_importers(&self, changed: &Path) -> HmrDecision
Trait Implementations§
Source§impl Debug for ModuleGraph
impl Debug for ModuleGraph
Source§impl Default for ModuleGraph
impl Default for ModuleGraph
Source§fn default() -> ModuleGraph
fn default() -> ModuleGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleGraph
impl RefUnwindSafe for ModuleGraph
impl Send for ModuleGraph
impl Sync for ModuleGraph
impl Unpin for ModuleGraph
impl UnsafeUnpin for ModuleGraph
impl UnwindSafe for ModuleGraph
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