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
The Arbitrary
implementation uses the Config::default()
configuration. If you want to customize the shape of generated components,
create your own Config
instance and pass it to
Component::new
.
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 moreAuto Trait Implementations§
impl Freeze for Component
impl !RefUnwindSafe for Component
impl !Send for Component
impl !Sync for Component
impl Unpin for Component
impl !UnwindSafe for Component
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