Crate serde_transmute

Crate serde_transmute 

Source
Expand description

Transmute objects through serde!

This crate allows converting a Serialize value into a Deserialize type.

§Caveats

The main caveat of note is that Serialize is not lifetime-aware, so the Deserialize (or DeserializeSeed) cannot borrow from it.

But we don’t care because this crate was built to power parts of datafu. And it’s pretty good at that.

Structs§

Settings
Transmutation settings.
TransmuteError

Functions§

transmute
Transmutes the given Serialize into a stateless Deserialize.
transmute_seed
Transmutes the given Serialize with a stateful DeserializeSeed.