Trait fuzzcheck::Serializer
source · [−]pub trait Serializer {
type Value;
fn extension(&self) -> &str;
fn from_data(&self, data: &[u8]) -> Option<Self::Value>;
fn to_data(&self, value: &Self::Value) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
;
}
Expand description
A Serializer is used to encode and decode test cases into bytes.
It is used to transfer test cases between the corpus on the file system and the fuzzer’s storage.
Required Associated Types
Required Methods
Deserialize the bytes into the value.
This method can fail by returning None