pub enum Origin {
User,
Compiler,
Sysroot,
Bundled,
Host,
}Expand description
Which of section 8.5’s four steps put a directory in the list.
Carried rather than discarded because -print-search-dirs has to say it, because a user
debugging a wrong header needs to know which rule chose it, and because the test that no host
directory appears in a cross build is written against this rather than against path spelling.
Variants§
User
Step 1. A -I the user gave, in the position they gave it.
Compiler
Step 2. The compiler’s own headers, which describe the compiler rather than the platform.
Sysroot
Step 3, taken from a --sysroot or -isysroot the user named.
Bundled
Step 3, taken from the tree we bundle for this target.
Host
Step 3, taken from the host, which is legal only when the target is the host.
Implementations§
Trait Implementations§
impl Copy for Origin
impl Eq for Origin
impl StructuralPartialEq for Origin
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