Struct wasm_smith::InstructionKinds
source · pub struct InstructionKinds(_);
Expand description
A container for the kinds of instructions that wasm-smith is allowed to emit.
Example
let kinds = InstructionKinds::new(&[InstructionKind::Numeric, InstructionKind::Memory]);
assert!(kinds.contains(InstructionKind::Memory));
Implementations
sourceimpl InstructionKinds
impl InstructionKinds
sourcepub fn new(kinds: &[InstructionKind]) -> Self
pub fn new(kinds: &[InstructionKind]) -> Self
Create a new container.
sourcepub fn all() -> Self
pub fn all() -> Self
Include all InstructionKinds.
sourcepub fn none() -> Self
pub fn none() -> Self
Include no InstructionKinds.
sourcepub fn contains(&self, kind: InstructionKind) -> bool
pub fn contains(&self, kind: InstructionKind) -> bool
Check if the InstructionKind is contained in this set.
Trait Implementations
sourceimpl Clone for InstructionKinds
impl Clone for InstructionKinds
sourcefn clone(&self) -> InstructionKinds
fn clone(&self) -> InstructionKinds
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InstructionKinds
impl Debug for InstructionKinds
sourceimpl Default for InstructionKinds
impl Default for InstructionKinds
sourcefn default() -> InstructionKinds
fn default() -> InstructionKinds
Returns the “default value” for a type. Read more
impl Copy for InstructionKinds
Auto Trait Implementations
impl RefUnwindSafe for InstructionKinds
impl Send for InstructionKinds
impl Sync for InstructionKinds
impl Unpin for InstructionKinds
impl UnwindSafe for InstructionKinds
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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