Skip to main content

enter_cycle_detector

Function enter_cycle_detector 

Source
pub(crate) fn enter_cycle_detector<'ra>(
    resolution: Interned<'ra, CmRefCell<NameResolution<'ra>>>,
) -> Result<ActiveResolutionGuard, ()>
Expand description

Returns Err(()) if a cycle is detected, otherwise this returns a guard that will remove the resolution when dropped.