pub struct Found {
pub path: PathBuf,
pub name: String,
pub is_system: bool,
pub next: usize,
pub bytes: SourceBytes,
}Expand description
A header that was found.
Fields§
§path: PathBufThe path to open, which is the directory joined with the name as written.
name: StringThat path as a string, for the source map and for diagnostics.
is_system: boolWhether it came from a system directory.
next: usizeWhere an #include_next written in this file should start looking.
One past the entry this header came from, or zero for a header found next to the file that included it, because that directory is not on the path and there is nothing to continue past. Carrying the answer rather than the position is what keeps the two cases from being confused at the call site.
bytes: SourceBytesThe contents.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Found
impl !UnwindSafe for Found
impl Freeze for Found
impl Send for Found
impl Sync for Found
impl Unpin for Found
impl UnsafeUnpin for Found
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