Expand description
Traits for working with Preserves embedded values.
Structs§
- Convenience codec: use this as embedded codec for encoding (only) when embedded values should be serialized as Preserves
String
s holding their Rust std::fmt::Debug representation. - Convenience codec: use this as embedded codec for decoding (only) when embedded values are expected to conform to the syntax implicit in their std::str::FromStr implementation.
- Use this as embedded codec when embedded data are already IOValues that can be directly serialized and deserialized without further transformation.
- Use this as embedded codec to forbid use of embedded values; an io::Error is signalled.
- If some
C
implements DomainDecode but not DomainParse, or vice versa, useViaCodec
to promote the one to the other. Construct instances with ViaCodec::new.