Skip to main content

enter_cycle_detector

Function enter_cycle_detector 

Source
pub(crate) fn enter_cycle_detector<'ra>(
    module: LocalModule<'ra>,
    binding_key: BindingKey,
) -> Result<ActiveResolutionGuard, ()>
Expand description

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