pub struct InstanceImage {
pub memory: Option<Vec<u8>>,
pub globals: Vec<u128>,
pub execution_state: ExecutionStateImage,
}Expand description
Represents an image of an Instance including its memory, globals, and execution state.
Fields§
§memory: Option<Vec<u8>>Memory for this InstanceImage
globals: Vec<u128>Stored globals for this InstanceImage
execution_state: ExecutionStateImageExecutionStateImage for this InstanceImage
Implementations§
Source§impl InstanceImage
impl InstanceImage
Sourcepub fn from_bytes(input: &[u8]) -> Option<InstanceImage>
pub fn from_bytes(input: &[u8]) -> Option<InstanceImage>
Converts a slice of bytes into an Option<InstanceImage>
Trait Implementations§
Source§impl Clone for InstanceImage
impl Clone for InstanceImage
Source§fn clone(&self) -> InstanceImage
fn clone(&self) -> InstanceImage
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 InstanceImage
impl Debug for InstanceImage
Source§impl<'de> Deserialize<'de> for InstanceImage
impl<'de> Deserialize<'de> for InstanceImage
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
Auto Trait Implementations§
impl Freeze for InstanceImage
impl RefUnwindSafe for InstanceImage
impl Send for InstanceImage
impl Sync for InstanceImage
impl Unpin for InstanceImage
impl UnwindSafe for InstanceImage
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