Enum p8n_types::MemoryOperation
source · pub enum MemoryOperation {
Store {
segment: Segment,
endianess: Endianess,
bytes: usize,
address: Value,
value: Value,
},
MemoryPhi(Option<Segment>, Option<Segment>, Option<Segment>),
Allocate {
base: StrRef,
},
}Expand description
A memory operation.
Variants
Store
Fields
segment: SegmentMemory segment before the store.
endianess: EndianessByte order if bytes > 1
bytes: usizeNumber of bytes to be written.
address: ValueAddress inside segment written to.
value: ValueValue that is written.
Writes a memory cell
MemoryPhi(Option<Segment>, Option<Segment>, Option<Segment>)
Memory phi. Merges up to three memory segments.
Allocate
Fields
base: StrRefSegment base name.
Introduces a new memory segment into the function context.
Trait Implementations
sourceimpl Clone for MemoryOperation
impl Clone for MemoryOperation
sourcefn clone(&self) -> MemoryOperation
fn clone(&self) -> MemoryOperation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for MemoryOperation
impl Debug for MemoryOperation
sourceimpl PartialEq<MemoryOperation> for MemoryOperation
impl PartialEq<MemoryOperation> for MemoryOperation
sourcefn eq(&self, other: &MemoryOperation) -> bool
fn eq(&self, other: &MemoryOperation) -> bool
impl Eq for MemoryOperation
impl StructuralEq for MemoryOperation
impl StructuralPartialEq for MemoryOperation
Auto Trait Implementations
impl RefUnwindSafe for MemoryOperation
impl Send for MemoryOperation
impl Sync for MemoryOperation
impl Unpin for MemoryOperation
impl UnwindSafe for MemoryOperation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.