pub struct Stmt {
pub labels: Vec<Label>,
pub nucleus: StmtKind,
pub span: Range<usize>,
}
Expand description
A “statement” in LC-3 assembly.
While not a defined term in LC-3 assembly, a statement here refers to either an instruction or a directive, and the labels that are associated with it.
Fields§
§labels: Vec<Label>
The labels.
nucleus: StmtKind
The instruction or directive.
span: Range<usize>
The span of the nucleus.
Trait Implementations§
impl Eq for Stmt
impl StructuralPartialEq for Stmt
Auto Trait Implementations§
impl Freeze for Stmt
impl RefUnwindSafe for Stmt
impl Send for Stmt
impl Sync for Stmt
impl Unpin for Stmt
impl UnwindSafe for Stmt
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