mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 16:08:05 +00:00
Inline the trait docs at the top level
This commit is contained in:
+4
-4
@@ -488,8 +488,8 @@ impl<'a> Display for Expected + 'a {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// An implementation of this trait is a **data structure** that can be
|
||||
/// deserialized from any data format supported by Serde.
|
||||
/// A **data structure** that can be deserialized from any data format supported
|
||||
/// by Serde.
|
||||
///
|
||||
/// Serde provides `Deserialize` implementations for many Rust primitive and
|
||||
/// standard library types. The complete list is [here][de]. All of these can
|
||||
@@ -687,8 +687,8 @@ impl<T> DeserializeSeed for PhantomData<T>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// An implementation of this trait is a **data format** that can deserialize
|
||||
/// any data structure supported by Serde.
|
||||
/// A **data format** that can deserialize any data structure supported by
|
||||
/// Serde.
|
||||
///
|
||||
/// The role of this trait is to define the deserialization half of the Serde
|
||||
/// data model, which is a way to categorize every Rust data type into one of 28
|
||||
|
||||
@@ -84,7 +84,9 @@ mod core {
|
||||
pub use actual_core::nonzero;
|
||||
}
|
||||
|
||||
#[doc(inline)]
|
||||
pub use ser::{Serialize, Serializer};
|
||||
#[doc(inline)]
|
||||
pub use de::{Deserialize, Deserializer};
|
||||
|
||||
#[macro_use]
|
||||
|
||||
@@ -141,8 +141,8 @@ pub trait Error: Sized + error::Error {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// An implementation of this trait is a **data structure** that can be
|
||||
/// serialized into any data format supported by Serde.
|
||||
/// A **data structure** that can be serialized into any data format supported
|
||||
/// by Serde.
|
||||
///
|
||||
/// Serde provides `Serialize` implementations for many Rust primitive and
|
||||
/// standard library types. The complete list is [here][ser]. All of these can
|
||||
@@ -178,8 +178,7 @@ pub trait Serialize {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/// An implementation of this trait is a **data format** that can serialize any
|
||||
/// data structure supported by Serde.
|
||||
/// A **data format** that can serialize any data structure supported by Serde.
|
||||
///
|
||||
/// The role of this trait is to define the serialization half of the Serde data
|
||||
/// model, which is a way to categorize every Rust data structure into one of 28
|
||||
|
||||
Reference in New Issue
Block a user