Struct serde_transcode::Transcoder [] [src]

pub struct Transcoder<'a, D: 'a>(_);

A Serde transcoder.

In most cases, the transcode function should be used instead of this type.

Note

Unlike traditional serializable types, Transcoder's Serialize implementation is not idempotent, as it advances the state of its internal Deserializer. It should only ever be serialized once.

Methods

impl<'a, D> Transcoder<'a, D> where D: Deserializer
[src]

Constructs a new Transcoder.

Trait Implementations

impl<'a, D> Serialize for Transcoder<'a, D> where D: Deserializer
[src]

Serializes this value into this serializer.