Skip to main content

folder_cycle

Function folder_cycle 

Source
pub fn folder_cycle<I, F>(
    child: &I,
    new_parent: Option<&I>,
    parent_of: F,
) -> bool
where I: Eq + Hash + Clone, F: FnMut(&I) -> Option<I>,
Expand description

If assigning child’s parent to new_parent would cycle, the application should move the later-HLC folder to the root instead.