Struct diny_core::serializer::Serializer[][src]

pub struct Serializer<F, W> {
    pub format: F,
    pub writer: W,
}
Expand description

A wrapper type around a specific format and writer

Fields

format: F

The format used for encoding

writer: W

The writer to write serialized bytes to

Implementations

Instantiates a new Serializer from the format and writer

Converts the Serializer into a sink for D’s

Serializes a single object of type D

Flushes the underlying writer

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.