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

Method path

include_dir/src/dir.rs:20–22  ·  view source on GitHub ↗

The full path for this [`Dir`], relative to the directory passed to [`crate::include_dir!()`].

(&self)

Source from the content-addressed store, hash-verified

18 /// The full path for this [`Dir`], relative to the directory passed to
19 /// [`crate::include_dir!()`].
20 pub fn path(&self) -> &'a Path {
21 Path::new(self.path)
22 }
23
24 /// The entries within this [`Dir`].
25 pub const fn entries(&self) -> &'a [DirEntry<'a>] {

Callers 7

read_dirFunction · 0.45
nextMethod · 0.45
get_entryMethod · 0.45
extractMethod · 0.45
extract_all_filesFunction · 0.45
validate_includedFunction · 0.45
validate_extractedFunction · 0.45

Calls

no outgoing calls

Tested by 3

extract_all_filesFunction · 0.36
validate_includedFunction · 0.36
validate_extractedFunction · 0.36