Struct sc_executor_common::util::DataSegmentsSnapshot [−][src]
pub struct DataSegmentsSnapshot { /* fields omitted */ }This is a snapshot of data segments specialzied for a particular instantiation.
Note that this assumes that no mutable globals are used.
Implementations
impl DataSegmentsSnapshot[src]
impl DataSegmentsSnapshot[src]pub fn take(module: &WasmModuleInfo) -> Result<Self>[src]
Create a snapshot from the data segments from the module.
pub fn apply<E>(
&self,
memory_set: impl FnMut(u32, &[u8]) -> Result<(), E>
) -> Result<(), E>[src]
&self,
memory_set: impl FnMut(u32, &[u8]) -> Result<(), E>
) -> Result<(), E>
Apply the given snapshot to a linear memory.
Linear memory interface is represented by a closure memory_set.
Trait Implementations
impl Clone for DataSegmentsSnapshot[src]
impl Clone for DataSegmentsSnapshot[src]fn clone(&self) -> DataSegmentsSnapshot[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for DataSegmentsSnapshot
impl Send for DataSegmentsSnapshot
impl Sync for DataSegmentsSnapshot
impl Unpin for DataSegmentsSnapshot
impl UnwindSafe for DataSegmentsSnapshot
Blanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]pub fn unchecked_into(self) -> T[src]
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,