pub enum SourceLocation<'a> {
Path {
path: &'a str,
},
PathAndLine {
path: &'a str,
line: u32,
},
Full {
path: &'a str,
line: u32,
column: u32,
},
}
Expand description
The source location.
Variants§
Implementations§
Trait Implementations§
Source§impl<'a> Clone for SourceLocation<'a>
impl<'a> Clone for SourceLocation<'a>
Source§fn clone(&self) -> SourceLocation<'a>
fn clone(&self) -> SourceLocation<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for SourceLocation<'a>
impl<'a> Debug for SourceLocation<'a>
Source§impl<'a> Display for SourceLocation<'a>
impl<'a> Display for SourceLocation<'a>
Source§impl<'a> PartialEq for SourceLocation<'a>
impl<'a> PartialEq for SourceLocation<'a>
impl<'a> Copy for SourceLocation<'a>
impl<'a> Eq for SourceLocation<'a>
impl<'a> StructuralPartialEq for SourceLocation<'a>
Auto Trait Implementations§
impl<'a> Freeze for SourceLocation<'a>
impl<'a> RefUnwindSafe for SourceLocation<'a>
impl<'a> Send for SourceLocation<'a>
impl<'a> Sync for SourceLocation<'a>
impl<'a> Unpin for SourceLocation<'a>
impl<'a> UnwindSafe for SourceLocation<'a>
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