pub struct FileSpan {
pub file: FileId,
pub span: Span,
}Expand description
A Span together with the file it belongs to.
Combining the file into the type means there is no such thing as an “orphan”
span whose file has to be guessed from context. Operations that combine two
spans (FileSpan::union) require them to share a file, enforced at runtime.
Fields§
§file: FileId§span: SpanImplementations§
Trait Implementations§
impl Copy for FileSpan
impl Eq for FileSpan
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