pub struct SourceLocation {
pub file: &'static str,
pub line: u32,
pub column: u32,
}Expand description
The source position associated with a diagnostic.
Fields§
§file: &'static strThe source file path.
line: u32The one-based source line.
column: u32The one-based source column.
Implementations§
Trait Implementations§
Source§impl Clone for SourceLocation
impl Clone for SourceLocation
impl Copy for SourceLocation
Source§impl Debug for SourceLocation
impl Debug for SourceLocation
impl Eq for SourceLocation
Source§impl Hash for SourceLocation
impl Hash for SourceLocation
Source§impl PartialEq for SourceLocation
impl PartialEq for SourceLocation
impl StructuralPartialEq for SourceLocation
Auto Trait Implementations§
impl Forget for SourceLocation
impl Freeze for SourceLocation
impl Move for SourceLocation
impl RefUnwindSafe for SourceLocation
impl Send for SourceLocation
impl Sync for SourceLocation
impl Unpin for SourceLocation
impl UnsafeUnpin for SourceLocation
impl UnwindSafe for SourceLocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.