pub struct Load<S = ()> {
pub space: Option<SpaceRef>,
pub size: Option<usize>,
pub ptr: Box<Expression<S>>,
}Expand description
*[space]:size ptr — a read from memory.
A load from the constant space is not a memory access at all: it is the pointer value itself, taken at the declared width.
Fields§
§space: Option<SpaceRef>Which space to read, or None for the producer’s default space.
size: Option<usize>How many bytes to read, or None when the width is not written and
must come from the context the load appears in.
ptr: Box<Expression<S>>The address to read from.
Implementations§
Source§impl Load
impl Load
Sourcepub fn pretty_print(&self, spec: &impl PcodeResolver) -> String
pub fn pretty_print(&self, spec: &impl PcodeResolver) -> String
Renders this load in a diagnostic-oriented SLEIGH-like syntax.
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for Load<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Load<S>where
S: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<S: Eq> Eq for Load<S>
impl<S: PartialEq> StructuralPartialEq for Load<S>
Auto Trait Implementations§
impl<S> Freeze for Load<S>
impl<S> RefUnwindSafe for Load<S>
impl<S> Send for Load<S>
impl<S> Sync for Load<S>
impl<S> Unpin for Load<S>
impl<S> UnsafeUnpin for Load<S>
impl<S> UnwindSafe for Load<S>
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