pub struct ByteSerializer { /* private fields */ }
Expand description

A Serializer for Vec<u8> that simply copies the bytes from/to the files.

Implementations

Create a byte serializer. The only argument is the name of the extension that the created files should have. For example:

use fuzzcheck::ByteSerializer;

let ser = ByteSerializer::new("png");

Trait Implementations

The type of the value to be serialized

The extension of the file containing the serialized value

Deserialize the bytes into the value. Read more

Serialize the value into bytes Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.