Skip to main content

is_namespace

Function is_namespace 

Source
pub(crate) fn is_namespace(path: &str, root: &str) -> bool
Expand description

Returns true when path equals root or is nested directly under it (root/...). Uses an exact slash boundary so /v1 does not match /v10 or /v1-internal.