pub struct LineCol {
pub pc: u32,
pub line: u32,
pub column: u32,
}Expand description
A stretch of bytecode and the source position it came from.
One entry per run of instructions that share a position, ordered by pc, which is
what Function::position_at binary searches. This is the port of the reference’s
pc2line table: it is how a stack trace says file:line:col for a frame that is
deep inside a function rather than at its first statement.
Fields§
§pc: u32Byte offset in Function::code where this position takes over.
line: u321-based line.
column: u321-based column, in UTF-16 code units like every other position here.
Trait Implementations§
impl Copy for LineCol
impl Eq for LineCol
impl StructuralPartialEq for LineCol
Auto Trait Implementations§
impl Forget for LineCol
impl Freeze for LineCol
impl Move for LineCol
impl RefUnwindSafe for LineCol
impl Send for LineCol
impl Sync for LineCol
impl Unpin for LineCol
impl UnsafeUnpin for LineCol
impl UnwindSafe for LineCol
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