Enum polkavm_common::program::SourceLocation
source · 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>
source§fn eq(&self, other: &SourceLocation<'a>) -> bool
fn eq(&self, other: &SourceLocation<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for SourceLocation<'a>
impl<'a> Eq for SourceLocation<'a>
impl<'a> StructuralPartialEq for SourceLocation<'a>
Auto Trait Implementations§
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