Struct serde_transcode::Transcoder [] [src]

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

A Serde transcoder.

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]

fn new(d: &'a mut D) -> Transcoder<'a, D>

Constructs a new Transcoder.

Trait Implementations

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

fn serialize<S>(&self, s: &mut S) -> Result<(), S::Error> where S: Serializer

Serializes this value into this serializer.