mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-12 09:41:02 +00:00
Adjust comments
This commit is contained in:
@@ -168,9 +168,9 @@ impl Parameters {
|
|||||||
self.this_type.segments.last().unwrap().ident.to_string()
|
self.this_type.segments.last().unwrap().ident.to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Split a deserialized type's generics into the pieces required for impl'ing
|
/// Split the data structure's generics into the pieces to use for its
|
||||||
/// a `Deserialize` trait for that type. Additionally appends the `'de` lifetime
|
/// `Deserialize` impl, augmented with an additional `'de` lifetime for use
|
||||||
/// to list of impl generics.
|
/// as the `Deserialize` trait's lifetime.
|
||||||
fn generics_with_de_lifetime(
|
fn generics_with_de_lifetime(
|
||||||
&self,
|
&self,
|
||||||
) -> (
|
) -> (
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//! Generator of the deserialization code for the adjacently tagged enums:
|
//! Deserialization for adjacently tagged enums:
|
||||||
//!
|
//!
|
||||||
//! ```ignore
|
//! ```ignore
|
||||||
//! #[serde(tag = "...", content = "...")]
|
//! #[serde(tag = "...", content = "...")]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//! Generator of the deserialization code for the externally tagged enums:
|
//! Deserialization for externally tagged enums:
|
||||||
//!
|
//!
|
||||||
//! ```ignore
|
//! ```ignore
|
||||||
//! enum Enum {}
|
//! enum Enum {}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//! Generator of the deserialization code for the internally tagged enums:
|
//! Deserialization for internally tagged enums:
|
||||||
//!
|
//!
|
||||||
//! ```ignore
|
//! ```ignore
|
||||||
//! #[serde(tag = "...")]
|
//! #[serde(tag = "...")]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
//! Generator of the deserialization code for the untagged enums:
|
//! Deserialization for untagged enums:
|
||||||
//!
|
//!
|
||||||
//! ```ignore
|
//! ```ignore
|
||||||
//! #[serde(untagged)]
|
//! #[serde(untagged)]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
//! Contains generators of enums that represents identifiers of fields in structs or variants in enums.
|
//! Deserialization of struct field identifiers and enum variant identifiers by
|
||||||
|
//! way of a Rust enum.
|
||||||
|
|
||||||
use crate::de::{FieldWithAliases, Parameters};
|
use crate::de::{FieldWithAliases, Parameters};
|
||||||
use crate::fragment::{Fragment, Stmts};
|
use crate::fragment::{Fragment, Stmts};
|
||||||
|
|||||||
Reference in New Issue
Block a user