pub struct Dependency {
pub path: PathBuf,
pub is_system: bool,
}Expand description
One file an #include found, for the -M family.
The path is the one the search resolved to rather than the name the directive wrote, because
a make rule naming stdio.h would say nothing about which stdio.h, and it is left relative
where the directory it was found under was relative, which is what makes the rule readable
and what GCC does.
Fields§
§path: PathBufWhere the file was found.
is_system: boolWhether the directory it was found under is a system one, which is what -MM drops.
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§impl Debug for Dependency
impl Debug for Dependency
impl Eq for Dependency
Source§impl PartialEq for Dependency
impl PartialEq for Dependency
impl StructuralPartialEq for Dependency
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnsafeUnpin for Dependency
impl UnwindSafe for Dependency
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