pub enum SimpleValType {
I32,
I64,
F32,
F64,
}Expand description
Subset of ValType that we generate for tag params.
Variants§
Trait Implementations§
Source§impl Clone for SimpleValType
impl Clone for SimpleValType
impl Copy for SimpleValType
Source§impl Debug for SimpleValType
impl Debug for SimpleValType
Source§impl DefaultMutate for SimpleValType
impl DefaultMutate for SimpleValType
Source§type DefaultMutate = EnumMutator
type DefaultMutate = EnumMutator
The default mutator for this type.
Source§impl<'de> Deserialize<'de> for SimpleValType
impl<'de> Deserialize<'de> for SimpleValType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SimpleValType
Source§impl Generate<SimpleValType> for EnumMutator
impl Generate<SimpleValType> for EnumMutator
Source§fn generate(&mut self, ctx: &mut Context) -> MutResult<SimpleValType>
fn generate(&mut self, ctx: &mut Context) -> MutResult<SimpleValType>
Generate a random
T value from scratch. Read moreSource§impl Mutate<SimpleValType> for EnumMutator
impl Mutate<SimpleValType> for EnumMutator
Source§fn mutate(
&mut self,
c: &mut Candidates<'_>,
value: &mut SimpleValType,
) -> MutResult<()>
fn mutate( &mut self, c: &mut Candidates<'_>, value: &mut SimpleValType, ) -> MutResult<()>
Pseudo-randomly mutate the given value. Read more
§fn mutation_count(&self, value: &T, shrink: bool) -> Option<u32>
fn mutation_count(&self, value: &T, shrink: bool) -> Option<u32>
Return the number of mutations that [
mutate][Mutate::mutate] would
register for the given value. Read more§fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
Create a new mutator that performs either this mutation or the
other
mutation. Read more§fn map<F>(self, f: F) -> Map<Self, F>
fn map<F>(self, f: F) -> Map<Self, F>
Map a function over the mutations produced by this mutator. Read more
Source§impl PartialEq for SimpleValType
impl PartialEq for SimpleValType
Source§impl Serialize for SimpleValType
impl Serialize for SimpleValType
impl StructuralPartialEq for SimpleValType
Auto Trait Implementations§
impl Freeze for SimpleValType
impl RefUnwindSafe for SimpleValType
impl Send for SimpleValType
impl Sync for SimpleValType
impl Unpin for SimpleValType
impl UnsafeUnpin for SimpleValType
impl UnwindSafe for SimpleValType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more