MCPcopy Create free account
hub / github.com/Michael-F-Bryan/include_dir / get_dir

Method get_dir

include_dir/src/dir.rs:64–66  ·  view source on GitHub ↗

Look up a dir by name.

(&self, path: S)

Source from the content-addressed store, hash-verified

62
63 /// Look up a dir by name.
64 pub fn get_dir<S: AsRef<Path>>(&self, path: S) -> Option<&'a Dir<'a>> {
65 self.get_entry(path).and_then(DirEntry::as_dir)
66 }
67
68 /// Does this directory contain `path`?
69 pub fn contains<S: AsRef<Path>>(&self, path: S) -> bool {

Callers

nothing calls this directly

Calls 1

get_entryMethod · 0.80

Tested by

no test coverage detected