pub struct LineRow {
pub pc: u32,
pub file: StrId,
pub line: u32,
pub column: u32,
}Expand description
A row of a function’s line table: instructions from pc up to the next
row’s pc came from this source position.
§Examples
use bytecode_lang::{LineRow, StrId};
let row = LineRow { pc: 0, file: StrId(2), line: 10, column: 5 };
assert_eq!(row.line, 10);Fields§
§pc: u32The first instruction the row covers.
file: StrIdThe source file’s name.
line: u32The 1-based line.
column: u32The 1-based column.
Trait Implementations§
impl Copy for LineRow
impl Eq for LineRow
Source§impl Ord for LineRow
impl Ord for LineRow
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for LineRow
impl PartialOrd for LineRow
impl StructuralPartialEq for LineRow
Auto Trait Implementations§
impl Freeze for LineRow
impl RefUnwindSafe for LineRow
impl Send for LineRow
impl Sync for LineRow
impl Unpin for LineRow
impl UnsafeUnpin for LineRow
impl UnwindSafe for LineRow
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