Inline the trait docs at the top level

This commit is contained in:
David Tolnay
2017-02-01 12:58:01 -08:00
parent d960571439
commit 661cdf4e00
3 changed files with 9 additions and 8 deletions
+4 -4
View File
@@ -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
+2
View File
@@ -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]
+3 -4
View File
@@ -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