pub struct Resolved {
pub name: String,
pub text: String,
pub origin: Origin,
pub key: String,
pub path: Option<PathBuf>,
pub found_in: Option<Entry>,
pub system: bool,
}Expand description
A header that was found.
Fields§
§name: StringThe name diagnostics call it: a path for a file on disk, and
<cinrs>/stdio.h for a bundled header.
text: StringIts contents.
origin: OriginWhere its own #include "…" looks first.
key: StringWhat identifies it for #pragma once and the include-guard
optimisation: the canonical path of the file, or the bundled name.
path: Option<PathBuf>The absolute path of the file, for rebuild tracking. None for a
bundled header, which cannot change without the crate changing, and for
a header taken from one of the platform’s own directories, which is
part of the machine rather than of the crate.
found_in: Option<Entry>The entry it was found under, which is where an
#include_next written inside it goes on after. None when it was
not found by a search at all: an absolute name, or the including file’s
own directory.
system: boolWhether it came from one of the platform’s own directories.