pub enum Origin {
Dir(PathBuf),
SystemDir(PathBuf),
Bundled,
Unknown,
}Expand description
The directory a file’s own #include "…" searches first.
Variants§
Dir(PathBuf)
A directory on disk. Empty means the current directory, which is what
the parent of a bare lib.rs comes out as.
SystemDir(PathBuf)
A directory on disk reached through one of the platform’s own directories — the including file is a system header.
It searches that directory first, as any other file does, and its
<…> includes then go to the platform’s directories before the
bundled ones whatever the mode is. That is what keeps the platform’s
header set self-consistent: glibc’s <pthread.h> gets glibc’s
<time.h>, and so one struct timespec rather than two.
Bundled
The bundled set: one bundled header including another finds it there.
Unknown
Nowhere — the compiler would not say where the including file is.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more