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.
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");
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.