pub enum AddressSpaceId {
Register,
Ram,
Unique,
Const,
}Expand description
Identifies an address space in the P-code model.
Ord is derived for use as BTreeMap keys in the peephole optimizer (no_std
precludes HashMap). The derived ordering is arbitrary and should not be relied
upon for semantic comparisons.
Variants§
Register
CPU registers (offset = Ghidra register offset).
Ram
Main memory / RAM.
Unique
Temporary storage (unique per instruction lift).
Const
Constants (offset = the constant value itself).
Trait Implementations§
Source§impl Clone for AddressSpaceId
impl Clone for AddressSpaceId
Source§fn clone(&self) -> AddressSpaceId
fn clone(&self) -> AddressSpaceId
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 Debug for AddressSpaceId
impl Debug for AddressSpaceId
Source§impl Hash for AddressSpaceId
impl Hash for AddressSpaceId
Source§impl Ord for AddressSpaceId
impl Ord for AddressSpaceId
Source§fn cmp(&self, other: &AddressSpaceId) -> Ordering
fn cmp(&self, other: &AddressSpaceId) -> Ordering
1.21.0 · 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
Source§impl PartialEq for AddressSpaceId
impl PartialEq for AddressSpaceId
Source§impl PartialOrd for AddressSpaceId
impl PartialOrd for AddressSpaceId
impl Copy for AddressSpaceId
impl Eq for AddressSpaceId
impl StructuralPartialEq for AddressSpaceId
Auto Trait Implementations§
impl Freeze for AddressSpaceId
impl RefUnwindSafe for AddressSpaceId
impl Send for AddressSpaceId
impl Sync for AddressSpaceId
impl Unpin for AddressSpaceId
impl UnsafeUnpin for AddressSpaceId
impl UnwindSafe for AddressSpaceId
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