Struct wasm_smith::DefaultConfig
source · pub struct DefaultConfig;
Expand description
The default configuration.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for DefaultConfig
impl<'arbitrary> Arbitrary<'arbitrary> for DefaultConfig
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for DefaultConfig
impl Clone for DefaultConfig
source§fn clone(&self) -> DefaultConfig
fn clone(&self) -> DefaultConfig
Returns a copy 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 Config for DefaultConfig
impl Config for DefaultConfig
source§fn min_imports(&self) -> usize
fn min_imports(&self) -> usize
The minimum number of imports to generate. Defaults to 0. Read more
source§fn max_imports(&self) -> usize
fn max_imports(&self) -> usize
The maximum number of imports to generate. Defaults to 100.
The minimum number of tags to generate. Defaults to 0.
The maximum number of tags to generate. Defaults to 100.
source§fn available_imports(&self) -> Option<Cow<'_, [u8]>>
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
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
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
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
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
fn min_exports(&self) -> usize
The minimum number of exports to generate. Defaults to 0.
source§fn max_exports(&self) -> usize
fn max_exports(&self) -> usize
The maximum number of exports to generate. Defaults to 100.
source§fn export_everything(&self) -> bool
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
fn min_element_segments(&self) -> usize
The minimum number of element segments to generate. Defaults to 0.
source§fn max_element_segments(&self) -> usize
fn max_element_segments(&self) -> usize
The maximum number of element segments to generate. Defaults to 100.
source§fn min_elements(&self) -> usize
fn min_elements(&self) -> usize
The minimum number of elements within a segment to generate. Defaults to
0.
source§fn max_elements(&self) -> usize
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
fn min_data_segments(&self) -> usize
The minimum number of data segments to generate. Defaults to 0.
source§fn max_data_segments(&self) -> usize
fn max_data_segments(&self) -> usize
The maximum number of data segments to generate. Defaults to 100.
source§fn max_instructions(&self) -> usize
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
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
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
fn simd_enabled(&self) -> bool
Determines whether the SIMD proposal is enabled for
generating instructions. Read more
source§fn relaxed_simd_enabled(&self) -> bool
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
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
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
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
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
fn allow_start_export(&self) -> bool
Determines whether a
start
export may be included. Defaults to true
.source§fn max_aliases(&self) -> usize
fn max_aliases(&self) -> usize
Returns the maximal size of the
alias
section.source§fn max_nesting_depth(&self) -> usize
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
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
fn memory64_enabled(&self) -> bool
Returns whether 64-bit memories are allowed. Read more
source§fn canonicalize_nans(&self) -> bool
fn canonicalize_nans(&self) -> bool
Returns whether NaN values are canonicalized after all f32/f64
operation. Read more
source§fn allowed_instructions(&self) -> InstructionKinds
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
fn generate_custom_sections(&self) -> bool
Returns whether we should generate custom sections or not. Read more
source§fn threads_enabled(&self) -> bool
fn threads_enabled(&self) -> bool
Determines whether the threads proposal is enabled. Read more
source§fn disallow_traps(&self) -> bool
fn disallow_traps(&self) -> bool
Returns whether we should avoid generating code that will possibly trap. Read more
source§impl Debug for DefaultConfig
impl Debug for DefaultConfig
source§impl Default for DefaultConfig
impl Default for DefaultConfig
source§fn default() -> DefaultConfig
fn default() -> DefaultConfig
Returns the “default value” for a type. Read more
impl Copy for DefaultConfig
Auto Trait Implementations§
impl RefUnwindSafe for DefaultConfig
impl Send for DefaultConfig
impl Sync for DefaultConfig
impl Unpin for DefaultConfig
impl UnwindSafe for DefaultConfig
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