Skip to main content

path_has_segment

Function path_has_segment 

Source
pub fn path_has_segment(path: &Path, marker: &str) -> bool
Expand description

true if any segment of path is exactly marker.

Used to catch a module marker (fs, net, Command, …) appearing anywhere in a call path, regardless of how much of the path precedes or follows it.