File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- //! Untagged serialization/deserialization support for Either<L, R>.
1+ //! Untagged serialization/deserialization support for ` Either<L, R>` .
22//!
33//! `Either` uses default, externally-tagged representation.
44//! However, sometimes it is useful to support several alternative types.
5- //! For example, we may have a field which is generally Map <String, i32>
6- //! but in typical cases Vec<String> would suffice, too.
5+ //! For example, we may have a field which is generally a `HashMap <String, i32>`
6+ //! but in typical cases ` Vec<String>` would suffice, too.
77//!
88//! ```rust
99//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
Original file line number Diff line number Diff line change 1- //! Untagged serialization/deserialization support for Option<Either<L, R>>.
1+ //! Untagged serialization/deserialization support for ` Option<Either<L, R>>` .
22//!
33//! `Either` uses default, externally-tagged representation.
44//! However, sometimes it is useful to support several alternative types.
5- //! For example, we may have a field which is generally Map <String, i32>
6- //! but in typical cases Vec<String> would suffice, too.
5+ //! For example, we may have a field which is generally a `HashMap <String, i32>`
6+ //! but in typical cases ` Vec<String>` would suffice, too.
77//!
88//! ```rust
99//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
You can’t perform that action at this time.
0 commit comments