pub struct FileId(pub u32);Expand description
Identifies a source file registered with a SourceMap.
FileId::DUMMY is used for spans not tied to any file (e.g. synthetic
spans from Span::zero() and tests that don’t go through a SourceMap).
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for FileId
impl Eq for FileId
impl StructuralPartialEq for FileId
Auto Trait Implementations§
impl Freeze for FileId
impl RefUnwindSafe for FileId
impl Send for FileId
impl Sync for FileId
impl Unpin for FileId
impl UnwindSafe for FileId
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