pub struct SourceFile {
pub name: FileName,
pub src: String,
pub start_pos: BytePos,
pub end_pos: BytePos,
/* private fields */
}Expand description
A single source in the SourceMap.
Fields§
§name: FileNameThe name of the file that the source came from.
src: StringThe complete source code.
start_pos: BytePosThe start position of this source in the SourceMap.
end_pos: BytePosThe end position of this source in the SourceMap.
Auto Trait Implementations§
impl Freeze for SourceFile
impl RefUnwindSafe for SourceFile
impl Send for SourceFile
impl Sync for SourceFile
impl Unpin for SourceFile
impl UnwindSafe for SourceFile
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