#[non_exhaustive]pub struct SourceLine {
pub source: u32,
pub line: u32,
}Expand description
A line of one of the source files of a module.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: u32Which of ModuleMap::sources, by index.
line: u32The line of that file, counted from 1.
Trait Implementations§
Source§impl Clone for SourceLine
impl Clone for SourceLine
impl Copy for SourceLine
Source§impl Debug for SourceLine
impl Debug for SourceLine
impl Eq for SourceLine
Source§impl Hash for SourceLine
impl Hash for SourceLine
Source§impl PartialEq for SourceLine
impl PartialEq for SourceLine
impl StructuralPartialEq for SourceLine
Auto Trait Implementations§
impl Forget for SourceLine
impl Freeze for SourceLine
impl Move for SourceLine
impl RefUnwindSafe for SourceLine
impl Send for SourceLine
impl Sync for SourceLine
impl Unpin for SourceLine
impl UnsafeUnpin for SourceLine
impl UnwindSafe for SourceLine
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