pub struct DefaultConfig;
Expand description

The default configuration.

Trait Implementations§

source§

impl<'arbitrary> Arbitrary<'arbitrary> for DefaultConfig

source§

fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>

Generate an arbitrary value of Self from the given unstructured data. Read more
source§

fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
source§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
source§

impl Clone for DefaultConfig

source§

fn clone(&self) -> DefaultConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Config for DefaultConfig

source§

fn min_types(&self) -> usize

The minimum number of types to generate. Defaults to 0.
source§

fn max_types(&self) -> usize

The maximum number of types to generate. Defaults to 100.
source§

fn min_imports(&self) -> usize

The minimum number of imports to generate. Defaults to 0. Read more
source§

fn max_imports(&self) -> usize

The maximum number of imports to generate. Defaults to 100.
source§

fn min_tags(&self) -> usize

The minimum number of tags to generate. Defaults to 0.
source§

fn max_tags(&self) -> usize

The maximum number of tags to generate. Defaults to 100.
source§

fn available_imports(&self) -> Option<Cow<'_, [u8]>>

The imports that may be used when generating the module. Read more
source§

fn min_funcs(&self) -> usize

The minimum number of functions to generate. Defaults to 0. This includes imported functions.
source§

fn max_funcs(&self) -> usize

The maximum number of functions to generate. Defaults to 100. This includes imported functions.
source§

fn min_globals(&self) -> usize

The minimum number of globals to generate. Defaults to 0. This includes imported globals.
source§

fn max_globals(&self) -> usize

The maximum number of globals to generate. Defaults to 100. This includes imported globals.
source§

fn min_exports(&self) -> usize

The minimum number of exports to generate. Defaults to 0.
source§

fn max_exports(&self) -> usize

The maximum number of exports to generate. Defaults to 100.
source§

fn export_everything(&self) -> bool

Export all WebAssembly objects in the module. This overrides Config::min_exports and Config::max_exports. Defaults to false.
source§

fn min_element_segments(&self) -> usize

The minimum number of element segments to generate. Defaults to 0.
source§

fn max_element_segments(&self) -> usize

The maximum number of element segments to generate. Defaults to 100.
source§

fn min_elements(&self) -> usize

The minimum number of elements within a segment to generate. Defaults to 0.
source§

fn max_elements(&self) -> usize

The maximum number of elements within a segment to generate. Defaults to 100.
source§

fn min_data_segments(&self) -> usize

The minimum number of data segments to generate. Defaults to 0.
source§

fn max_data_segments(&self) -> usize

The maximum number of data segments to generate. Defaults to 100.
source§

fn max_instructions(&self) -> usize

The maximum number of instructions to generate in a function body. Defaults to 100. Read more
source§

fn min_memories(&self) -> u32

The minimum number of memories to use. Defaults to 0. This includes imported memories.
source§

fn max_memories(&self) -> usize

The maximum number of memories to use. Defaults to 1. This includes imported memories. Read more
source§

fn min_tables(&self) -> u32

The minimum number of tables to use. Defaults to 0. This includes imported tables.
source§

fn max_tables(&self) -> usize

The maximum number of tables to use. Defaults to 1. This includes imported tables. Read more
source§

fn max_memory_pages(&self, is_64: bool) -> u64

The maximum, in 64k Wasm pages, of any memory’s initial or maximum size. Read more
source§

fn memory_max_size_required(&self) -> bool

Whether every Wasm memory must have a maximum size specified. Defaults to false.
source§

fn max_table_elements(&self) -> u32

The maximum, elements, of any table’s initial or maximum size. Read more
source§

fn table_max_size_required(&self) -> bool

Whether every Wasm table must have a maximum size specified. Defaults to false.
source§

fn max_instances(&self) -> usize

The maximum number of instances to use. Defaults to 10. This includes imported instances. Read more
source§

fn max_modules(&self) -> usize

The maximum number of modules to use. Defaults to 10. This includes imported modules. Read more
source§

fn max_components(&self) -> usize

The maximum number of components to use. Defaults to 10. This includes imported components. Read more
source§

fn max_values(&self) -> usize

The maximum number of values to use. Defaults to 10. This includes imported values. Read more
source§

fn memory_offset_choices(&self) -> (u32, u32, u32)

Control the probability of generating memory offsets that are in bounds vs. potentially out of bounds. Read more
source§

fn min_uleb_size(&self) -> u8

The minimum size, in bytes, of all leb-encoded integers. Defaults to 1. Read more
source§

fn bulk_memory_enabled(&self) -> bool

Determines whether the bulk memory proposal is enabled for generating instructions. Read more
source§

fn reference_types_enabled(&self) -> bool

Determines whether the reference types proposal is enabled for generating instructions. Read more
source§

fn tail_call_enabled(&self) -> bool

Determines whether the tail calls proposal is enabled for generating instructions. Read more
source§

fn simd_enabled(&self) -> bool

Determines whether the SIMD proposal is enabled for generating instructions. Read more
source§

fn relaxed_simd_enabled(&self) -> bool

Determines whether the Relaxed SIMD proposal is enabled for generating instructions. Read more
source§

fn exceptions_enabled(&self) -> bool

Determines whether the exception-handling proposal is enabled for generating instructions. Read more
source§

fn multi_value_enabled(&self) -> bool

Determines whether the multi-value results are enabled. Read more
source§

fn saturating_float_to_int_enabled(&self) -> bool

Determines whether the nontrapping-float-to-int-conversions propsal is enabled. Read more
source§

fn sign_extension_ops_enabled(&self) -> bool

Determines whether the sign-extension-ops propsal is enabled. Read more
source§

fn allow_start_export(&self) -> bool

Determines whether a start export may be included. Defaults to true.
source§

fn max_aliases(&self) -> usize

Returns the maximal size of the alias section.
source§

fn max_nesting_depth(&self) -> usize

Returns the maximal nesting depth of modules with the module linking proposal.
source§

fn max_type_size(&self) -> u32

Returns the maximal effective size of any type generated by wasm-smith. Read more
source§

fn memory64_enabled(&self) -> bool

Returns whether 64-bit memories are allowed. Read more
source§

fn canonicalize_nans(&self) -> bool

Returns whether NaN values are canonicalized after all f32/f64 operation. Read more
source§

fn allowed_instructions(&self) -> InstructionKinds

Returns the kinds of instructions allowed in the generated wasm programs. Read more
source§

fn generate_custom_sections(&self) -> bool

Returns whether we should generate custom sections or not. Read more
source§

fn threads_enabled(&self) -> bool

Determines whether the threads proposal is enabled. Read more
source§

fn disallow_traps(&self) -> bool

Returns whether we should avoid generating code that will possibly trap. Read more
source§

impl Debug for DefaultConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DefaultConfig

source§

fn default() -> DefaultConfig

Returns the “default value” for a type. Read more
source§

impl Copy for DefaultConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.