Expand description
Provides custom serialize/deserialize implementations for Span
.
Structs§
- This visitor is used by the deserializer to unwrap mappings and extract span information.
Functions§
- Custom deserialization to enable removing spans from enums.
- The AST contains a few tuple-like enum variants that contain spans. #[derive(Serialize, Deserialize)] outputs these fields as anonymous mappings, which makes them difficult to remove from the JSON AST. This function provides a custom serialization that maps the keyword
span
to the span information.