Function fast_paths::deserialize_32

source ·
pub fn deserialize_32<'de, D: Deserializer<'de>>(
    d: D
) -> Result<FastGraph, D::Error>
Expand description

When deserializing a FastGraph in a larger struct, use #[serde(deserialize_with = "fast_paths::deserialize_32)]` to transform the graph from a 32-bit representation to the current platform’s supported size. This is necessary when serializing on a 64-bit system and deserializing on a 32-bit system, such as WASM.