pub enum CmpValues {
U8((u8, u8)),
U16((u16, u16)),
U32((u32, u32)),
U64((u64, u64)),
Bytes((Vec<u8>, Vec<u8>)),
}
Expand description
Compare values collected during a run
Variants
U8((u8, u8))
Two u8 values
U16((u16, u16))
Two u16 values
U32((u32, u32))
Two u32 values
U64((u64, u64))
Two u64 values
Bytes((Vec<u8>, Vec<u8>))
Two vecs of u8 values/byte
Implementations
sourceimpl CmpValues
impl CmpValues
sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Returns if the values are numericals
sourcepub fn to_u64_tuple(&self) -> Option<(u64, u64)>
pub fn to_u64_tuple(&self) -> Option<(u64, u64)>
Converts the value to a u64 tuple
Trait Implementations
sourceimpl AsMutSlice<CmpValues> for CmpValuesMetadata
impl AsMutSlice<CmpValues> for CmpValuesMetadata
sourcefn as_mut_slice(&mut self) -> &mut [CmpValues]
fn as_mut_slice(&mut self) -> &mut [CmpValues]
Convert to a slice
sourceimpl AsSlice<CmpValues> for CmpValuesMetadata
impl AsSlice<CmpValues> for CmpValuesMetadata
sourceimpl<'de> Deserialize<'de> for CmpValues
impl<'de> Deserialize<'de> for CmpValues
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for CmpValues
impl Send for CmpValues
impl Sync for CmpValues
impl Unpin for CmpValues
impl UnwindSafe for CmpValues
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
sourceimpl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
type PreprendResult = Tail
type PreprendResult = Tail
The Resulting TupleList
, of an Prepend::prepend()
call,
including the prepended entry. Read more
sourcefn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.