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
sourceimpl<'a> Arbitrary<'a> for Component
impl<'a> Arbitrary<'a> for Component
sourcefn 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 more
sourcefn 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
Auto Trait Implementations
impl !RefUnwindSafe for Component
impl !Send for Component
impl !Sync for Component
impl Unpin for Component
impl !UnwindSafe for Component
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more