Struct wasm_smith::Component
source · pub struct Component { /* private fields */ }
Expand description
A pseudo-random WebAssembly component.
Construct instances of this type with the Arbitrary
trait.
Configured Generated Components
This uses the DefaultConfig
configuration. If you
want to customize the shape of generated components, define your own
configuration type, implement the Config
trait for it,
and use ConfiguredComponent<YourConfigType>
instead of plain Component
.
Implementations§
Trait Implementations§
source§impl<'a> Arbitrary<'a> for Component
impl<'a> Arbitrary<'a> for Component
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read more