pub struct LocalVar {
pub reg: Reg,
pub name: StrId,
pub start: u32,
pub end: u32,
}Expand description
A named source variable living in a register over a pc range, for debuggers.
§Examples
use bytecode_lang::{LocalVar, Reg, StrId};
let x = LocalVar { reg: Reg(0), name: StrId(1), start: 0, end: 9 };
assert_eq!(x.reg, Reg(0));Fields§
§reg: RegThe register holding the variable.
name: StrIdThe variable’s source name.
start: u32First pc where the variable is live.
end: u32One past the last pc where it is live.
Trait Implementations§
impl Copy for LocalVar
impl Eq for LocalVar
Source§impl Ord for LocalVar
impl Ord for LocalVar
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 LocalVar
impl PartialOrd for LocalVar
impl StructuralPartialEq for LocalVar
Auto Trait Implementations§
impl Freeze for LocalVar
impl RefUnwindSafe for LocalVar
impl Send for LocalVar
impl Sync for LocalVar
impl Unpin for LocalVar
impl UnsafeUnpin for LocalVar
impl UnwindSafe for LocalVar
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