Skip to main content

is_within

Function is_within 

Source
pub fn is_within(child: &Path, parent: &Path) -> bool
Expand description

Whether child is parent or lives under it, lexically.

Used for containment questions about paths that may not exist yet, where canonicalize cannot be asked.