mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 19:18:00 +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
|
/// A **data structure** that can be deserialized from any data format supported
|
||||||
/// deserialized from any data format supported by Serde.
|
/// by Serde.
|
||||||
///
|
///
|
||||||
/// Serde provides `Deserialize` implementations for many Rust primitive and
|
/// Serde provides `Deserialize` implementations for many Rust primitive and
|
||||||
/// standard library types. The complete list is [here][de]. All of these can
|
/// 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
|
/// A **data format** that can deserialize any data structure supported by
|
||||||
/// any data structure supported by Serde.
|
/// Serde.
|
||||||
///
|
///
|
||||||
/// The role of this trait is to define the deserialization half of the 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
|
/// 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;
|
pub use actual_core::nonzero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[doc(inline)]
|
||||||
pub use ser::{Serialize, Serializer};
|
pub use ser::{Serialize, Serializer};
|
||||||
|
#[doc(inline)]
|
||||||
pub use de::{Deserialize, Deserializer};
|
pub use de::{Deserialize, Deserializer};
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|||||||
@@ -141,8 +141,8 @@ pub trait Error: Sized + error::Error {
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/// An implementation of this trait is a **data structure** that can be
|
/// A **data structure** that can be serialized into any data format supported
|
||||||
/// serialized into any data format supported by Serde.
|
/// by Serde.
|
||||||
///
|
///
|
||||||
/// Serde provides `Serialize` implementations for many Rust primitive and
|
/// Serde provides `Serialize` implementations for many Rust primitive and
|
||||||
/// standard library types. The complete list is [here][ser]. All of these can
|
/// 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
|
/// A **data format** that can serialize any data structure supported by Serde.
|
||||||
/// data structure supported by Serde.
|
|
||||||
///
|
///
|
||||||
/// The role of this trait is to define the serialization half of the Serde data
|
/// 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
|
/// model, which is a way to categorize every Rust data structure into one of 28
|
||||||
|
|||||||
Reference in New Issue
Block a user