[−][src]Struct wasm_smith::ConfiguredModule
A pseudo-random generated WebAssembly file with custom configuration.
If you don't care about custom configuration, use Module
instead.
For details on configuring, see the Config
trait.
Implementations
impl<C> ConfiguredModule<C> where
C: Config,
[src]
C: Config,
impl<C> ConfiguredModule<C> where
C: Config,
[src]
C: Config,
pub fn ensure_termination(&mut self, default_fuel: u32) -> u32
[src]
Ensure that all of this Wasm module's functions will terminate when executed.
This adds a new mutable, exported global to the module to keep track of how much "fuel" is left. Fuel is decremented at the head of each loop and function. When fuel reaches zero, a trap is raised.
The index of the fuel global is returned, so that you may control how much fuel the module is given.
impl<C: Config> ConfiguredModule<C>
[src]
Trait Implementations
impl<C: Config> Arbitrary for ConfiguredModule<C>
[src]
fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>
[src]
fn arbitrary_take_rest(u: Unstructured<'_>) -> Result<Self, Error>
[src]
fn size_hint(depth: usize) -> (usize, Option<usize>)
[src]
fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static, Global>
[src]
impl<C: Debug> Debug for ConfiguredModule<C> where
C: Config,
[src]
C: Config,
impl<C: Default> Default for ConfiguredModule<C> where
C: Config,
[src]
C: Config,
fn default() -> ConfiguredModule<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for ConfiguredModule<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for ConfiguredModule<C> where
C: Send,
C: Send,
impl<C> Sync for ConfiguredModule<C> where
C: Sync,
C: Sync,
impl<C> Unpin for ConfiguredModule<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for ConfiguredModule<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,