pub struct CommonContext {
pub defines: Rc<RefCell<HashMap<String, Expr>>>,
pub equs: Rc<RefCell<HashMap<String, Expr>>>,
pub labels: Rc<RefCell<HashMap<String, (SegmentType, u32)>>>,
pub defs: Rc<RefCell<HashMap<String, Reg8>>>,
pub sets: Rc<RefCell<HashMap<String, Expr>>>,
pub special: Rc<RefCell<HashMap<String, Expr>>>,
pub device: Rc<RefCell<Option<Device>>>,
}Fields§
§defines: Rc<RefCell<HashMap<String, Expr>>>§equs: Rc<RefCell<HashMap<String, Expr>>>§labels: Rc<RefCell<HashMap<String, (SegmentType, u32)>>>§defs: Rc<RefCell<HashMap<String, Reg8>>>§sets: Rc<RefCell<HashMap<String, Expr>>>§special: Rc<RefCell<HashMap<String, Expr>>>§device: Rc<RefCell<Option<Device>>>Implementations§
Source§impl CommonContext
impl CommonContext
Trait Implementations§
Source§impl Clone for CommonContext
impl Clone for CommonContext
Source§fn clone(&self) -> CommonContext
fn clone(&self) -> CommonContext
Returns a duplicate 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 Context for CommonContext
impl Context for CommonContext
fn get_define(&self, name: &String) -> Option<Expr>
fn get_equ(&self, name: &String) -> Option<Expr>
fn get_label(&self, name: &String) -> Option<(SegmentType, u32)>
fn get_def(&self, name: &String) -> Option<Reg8>
fn get_set(&self, name: &String) -> Option<Expr>
fn get_special(&self, name: &String) -> Option<Expr>
fn get_device(&self) -> Device
fn set_define(&self, name: String, expr: Expr) -> Option<Expr>
fn set_equ(&self, name: String, expr: Expr) -> Option<Expr>
fn set_label( &self, name: String, value: (SegmentType, u32), ) -> Option<(SegmentType, u32)>
fn set_def(&self, name: String, value: Reg8) -> Option<Reg8>
fn set_special(&self, name: String, value: Expr) -> Option<Expr>
fn get_expr(&self, name: &String) -> Option<Expr>
fn exist(&self, name: &String) -> bool
Source§impl Debug for CommonContext
impl Debug for CommonContext
Source§impl PartialEq for CommonContext
impl PartialEq for CommonContext
impl Eq for CommonContext
impl StructuralPartialEq for CommonContext
Auto Trait Implementations§
impl Freeze for CommonContext
impl !RefUnwindSafe for CommonContext
impl !Send for CommonContext
impl !Sync for CommonContext
impl Unpin for CommonContext
impl !UnwindSafe for CommonContext
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