pub struct SourceFile {
pub name: String,
pub src: String,
pub start: usize,
/* private fields */
}Expand description
A loaded source file and the global positions it occupies.
Fields§
§name: StringThe name shown in diagnostics, usually the path as given.
src: String§start: usizeGlobal position of the file’s first byte.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for SourceFile
impl Freeze for SourceFile
impl Move for SourceFile
impl RefUnwindSafe for SourceFile
impl Send for SourceFilewhere
RawVecInner: Send,
impl Sync for SourceFilewhere
RawVecInner: Sync,
impl Unpin for SourceFile
impl UnsafeUnpin for SourceFilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for SourceFilewhere
RawVecInner: UnwindSafe,
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