Struct fuzzcheck::StringSerializer[][src]

pub struct StringSerializer<StringType> where
    StringType: ToString + FromStr
{ pub extension: &'static str, // some fields omitted }
Expand description

A serializer that encodes and decodes values of any type implementing FromStr and ToString into utf-8 encoded text files.

Fields

extension: &'static str

Implementations

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

use fuzzcheck::StringSerializer;

let ser = StringSerializer::<String>::new("txt");

Trait Implementations

The type of the valeu 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

Performs the conversion.

Performs the conversion.

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.