pub struct FileSpan {
pub file: FileId,
pub span: Span,
}Expand description
A span that also carries a FileId, enabling multi-file diagnostics.
Fields§
§file: FileIdWhich file this span belongs to.
span: SpanThe span within that file.
Implementations§
Trait Implementations§
impl StructuralPartialEq for FileSpan
Auto Trait Implementations§
impl Freeze for FileSpan
impl RefUnwindSafe for FileSpan
impl Send for FileSpan
impl Sync for FileSpan
impl Unpin for FileSpan
impl UnsafeUnpin for FileSpan
impl UnwindSafe for FileSpan
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