Expand description
§feanor-serde
This is a tiny library that provides some features to work with serde, in particular serde::de::DeserializeSeeds.
I require these, since feanor-math and libraries building on it often need to serialize types that only exist as associated to some master object - e.g. ring elements, which belong to a ring.
Hence, these can only be serialized and deserialized when given access to the master object, and thus must use serde::de::DeserializeSeed.
Unfortunately, while serde makes it very convenient to implement serde::Deserialize, not much utilities are provided for serde::de::DeserializeSeed.
This library is a very small set of such utilities.
Modules§
Macros§
- impl_
deserialize_ seed_ for_ dependent_ enum - Same as
crate::impl_deserialize_seed_for_dependent_struct!but for enums. - impl_
deserialize_ seed_ for_ dependent_ struct - Macro to implement
serde::de::DeserializeSeedfor a custom type.