pub struct IncludedFile {
pub name: String,
pub text: String,
pub base: Pos,
pub directive: SourceRange,
}Expand description
One file #include brought in, for the caller to add to its source map.
Fields§
§name: StringWhat diagnostics call it: include/foo.h, or <cinrs>/stdio.h for a
bundled header.
text: StringIts text.
base: PosThe global offset its text starts at.
directive: SourceRangeThe #include directive that pulled it in, which is where a diagnostic
inside it points.
Trait Implementations§
Source§impl Clone for IncludedFile
impl Clone for IncludedFile
Auto Trait Implementations§
impl Freeze for IncludedFile
impl RefUnwindSafe for IncludedFile
impl Send for IncludedFile
impl Sync for IncludedFile
impl Unpin for IncludedFile
impl UnsafeUnpin for IncludedFile
impl UnwindSafe for IncludedFile
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