Skip to main content

slice_path_intersects

Function slice_path_intersects 

Source
pub fn slice_path_intersects(
    slice_path: &ConfigPath,
    dirty: &ConfigPath,
) -> bool
Expand description

Slice-intersection predicate: does dirty_path lie within the subtree rooted at slice_path? Examples:

  • slice ["services"] + dirty ["services", "atticd", "enable"] → true (slice is a prefix of dirty)
  • slice ["services", "atticd"] + dirty ["services"] → true (dirty is a prefix of slice — a coarser change covers it)
  • slice ["boot"] + dirty ["services"] → false