[−][src]Struct wasm_smith::SwarmConfig
A module configuration that uses swarm testing.
Dynamically -- but still deterministically, via its Arbitrary
implementation -- chooses configuration options.
Note that we pick only maximums, not minimums, here because it is more
complex to describe the domain of valid configs when minima are involved
(min <= max for each variable) and minima are mostly used to ensure
certain elements are present, but do not widen the range of generated Wasm
modules.
Trait Implementations
impl Arbitrary for SwarmConfig[src]
fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>[src]
pub fn arbitrary_take_rest(u: Unstructured<'_>) -> Result<Self, Error>[src]
pub fn size_hint(depth: usize) -> (usize, Option<usize>)[src]
pub fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static, Global>[src]
impl Clone for SwarmConfig[src]
fn clone(&self) -> SwarmConfig[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Config for SwarmConfig[src]
fn max_types(&self) -> usize[src]
fn max_imports(&self) -> usize[src]
fn max_funcs(&self) -> usize[src]
fn max_globals(&self) -> usize[src]
fn max_exports(&self) -> usize[src]
fn max_element_segments(&self) -> usize[src]
fn max_elements(&self) -> usize[src]
fn max_data_segments(&self) -> usize[src]
fn max_instructions(&self) -> usize[src]
fn max_memories(&self) -> usize[src]
fn max_tables(&self) -> usize[src]
fn max_memory_pages(&self) -> u32[src]
fn min_uleb_size(&self) -> u8[src]
fn bulk_memory_enabled(&self) -> bool[src]
fn reference_types_enabled(&self) -> bool[src]
fn module_linking_enabled(&self) -> bool[src]
fn max_aliases(&self) -> usize[src]
fn max_nesting_depth(&self) -> usize[src]
fn min_types(&self) -> usize[src]
fn min_imports(&self) -> usize[src]
fn min_funcs(&self) -> usize[src]
fn min_globals(&self) -> usize[src]
fn min_exports(&self) -> usize[src]
fn min_element_segments(&self) -> usize[src]
fn min_elements(&self) -> usize[src]
fn min_data_segments(&self) -> usize[src]
fn min_memories(&self) -> u32[src]
fn min_tables(&self) -> u32[src]
fn memory_max_size_required(&self) -> bool[src]
fn max_instances(&self) -> usize[src]
fn max_modules(&self) -> usize[src]
fn memory_offset_choices(&self) -> (u32, u32, u32)[src]
fn allow_start_export(&self) -> bool[src]
fn max_type_size(&self) -> u32[src]
impl Debug for SwarmConfig[src]
impl Default for SwarmConfig[src]
fn default() -> SwarmConfig[src]
Auto Trait Implementations
impl RefUnwindSafe for SwarmConfig[src]
impl Send for SwarmConfig[src]
impl Sync for SwarmConfig[src]
impl Unpin for SwarmConfig[src]
impl UnwindSafe for SwarmConfig[src]
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,