mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-27 13:00:49 +00:00
Convert html links to intra-doc links
This commit is contained in:
parent
abe7194480
commit
85cb0c478e
@ -101,8 +101,8 @@
|
|||||||
//! - SocketAddrV6
|
//! - SocketAddrV6
|
||||||
//!
|
//!
|
||||||
//! [Implementing `Deserialize`]: https://serde.rs/impl-deserialize.html
|
//! [Implementing `Deserialize`]: https://serde.rs/impl-deserialize.html
|
||||||
//! [`Deserialize`]: ../trait.Deserialize.html
|
//! [`Deserialize`]: crate::Deserialize
|
||||||
//! [`Deserializer`]: ../trait.Deserializer.html
|
//! [`Deserializer`]: crate::Deserializer
|
||||||
//! [`LinkedHashMap<K, V>`]: https://docs.rs/linked-hash-map/*/linked_hash_map/struct.LinkedHashMap.html
|
//! [`LinkedHashMap<K, V>`]: https://docs.rs/linked-hash-map/*/linked_hash_map/struct.LinkedHashMap.html
|
||||||
//! [`postcard`]: https://github.com/jamesmunns/postcard
|
//! [`postcard`]: https://github.com/jamesmunns/postcard
|
||||||
//! [`linked-hash-map`]: https://crates.io/crates/linked-hash-map
|
//! [`linked-hash-map`]: https://crates.io/crates/linked-hash-map
|
||||||
|
@ -104,9 +104,9 @@
|
|||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`Deserializer`]: trait.Deserializer.html
|
/// [`Deserializer`]: crate::Deserializer
|
||||||
/// [`Visitor`]: de/trait.Visitor.html
|
/// [`Visitor`]: crate::de::Visitor
|
||||||
/// [`Deserializer::deserialize_any`]: trait.Deserializer.html#tymethod.deserialize_any
|
/// [`Deserializer::deserialize_any`]: crate::Deserializer::deserialize_any
|
||||||
#[macro_export(local_inner_macros)]
|
#[macro_export(local_inner_macros)]
|
||||||
macro_rules! forward_to_deserialize_any {
|
macro_rules! forward_to_deserialize_any {
|
||||||
(<$visitor:ident: Visitor<$lifetime:tt>> $($func:ident)*) => {
|
(<$visitor:ident: Visitor<$lifetime:tt>> $($func:ident)*) => {
|
||||||
|
@ -49,14 +49,14 @@ use crate::ser::{
|
|||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`Serializer`]: trait.Serializer.html
|
/// [`Serializer`]: crate::Serializer
|
||||||
/// [`SerializeSeq`]: trait.SerializeSeq.html
|
/// [`SerializeSeq`]: crate::ser::SerializeSeq
|
||||||
/// [`SerializeTuple`]: trait.SerializeTuple.html
|
/// [`SerializeTuple`]: crate::ser::SerializeTuple
|
||||||
/// [`SerializeTupleStruct`]: trait.SerializeTupleStruct.html
|
/// [`SerializeTupleStruct`]: crate::ser::SerializeTupleStruct
|
||||||
/// [`SerializeTupleVariant`]: trait.SerializeTupleVariant.html
|
/// [`SerializeTupleVariant`]: crate::ser::SerializeTupleVariant
|
||||||
/// [`SerializeMap`]: trait.SerializeMap.html
|
/// [`SerializeMap`]: crate::ser::SerializeMap
|
||||||
/// [`SerializeStruct`]: trait.SerializeStruct.html
|
/// [`SerializeStruct`]: crate::ser::SerializeStruct
|
||||||
/// [`SerializeStructVariant`]: trait.SerializeStructVariant.html
|
/// [`SerializeStructVariant`]: crate::ser::SerializeStructVariant
|
||||||
pub struct Impossible<Ok, Error> {
|
pub struct Impossible<Ok, Error> {
|
||||||
void: Void,
|
void: Void,
|
||||||
ok: PhantomData<Ok>,
|
ok: PhantomData<Ok>,
|
||||||
|
@ -97,8 +97,8 @@
|
|||||||
//!
|
//!
|
||||||
//! [Implementing `Serialize`]: https://serde.rs/impl-serialize.html
|
//! [Implementing `Serialize`]: https://serde.rs/impl-serialize.html
|
||||||
//! [`LinkedHashMap<K, V>`]: https://docs.rs/linked-hash-map/*/linked_hash_map/struct.LinkedHashMap.html
|
//! [`LinkedHashMap<K, V>`]: https://docs.rs/linked-hash-map/*/linked_hash_map/struct.LinkedHashMap.html
|
||||||
//! [`Serialize`]: ../trait.Serialize.html
|
//! [`Serialize`]: crate::Serialize
|
||||||
//! [`Serializer`]: ../trait.Serializer.html
|
//! [`Serializer`]: crate::Serializer
|
||||||
//! [`postcard`]: https://github.com/jamesmunns/postcard
|
//! [`postcard`]: https://github.com/jamesmunns/postcard
|
||||||
//! [`linked-hash-map`]: https://crates.io/crates/linked-hash-map
|
//! [`linked-hash-map`]: https://crates.io/crates/linked-hash-map
|
||||||
//! [`serde_derive`]: https://crates.io/crates/serde_derive
|
//! [`serde_derive`]: https://crates.io/crates/serde_derive
|
||||||
@ -173,8 +173,8 @@ macro_rules! declare_error_trait {
|
|||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`Path`]: https://doc.rust-lang.org/std/path/struct.Path.html
|
/// [`Path`]: std::path::Path
|
||||||
/// [`Serialize`]: ../trait.Serialize.html
|
/// [`Serialize`]: crate::Serialize
|
||||||
fn custom<T>(msg: T) -> Self
|
fn custom<T>(msg: T) -> Self
|
||||||
where
|
where
|
||||||
T: Display;
|
T: Display;
|
||||||
@ -345,7 +345,7 @@ pub trait Serializer: Sized {
|
|||||||
/// in-memory data structures may be simplified by using `Ok` to propagate
|
/// in-memory data structures may be simplified by using `Ok` to propagate
|
||||||
/// the data structure around.
|
/// the data structure around.
|
||||||
///
|
///
|
||||||
/// [`io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
|
/// [`io::Write`]: std::io::Write
|
||||||
type Ok;
|
type Ok;
|
||||||
|
|
||||||
/// The error type when some error occurs during serialization.
|
/// The error type when some error occurs during serialization.
|
||||||
@ -769,7 +769,7 @@ pub trait Serializer: Sized {
|
|||||||
/// # fn main() {}
|
/// # fn main() {}
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`None`]: https://doc.rust-lang.org/std/option/enum.Option.html#variant.None
|
/// [`None`]: core::option::Option::None
|
||||||
fn serialize_none(self) -> Result<Self::Ok, Self::Error>;
|
fn serialize_none(self) -> Result<Self::Ok, Self::Error>;
|
||||||
|
|
||||||
/// Serialize a [`Some(T)`] value.
|
/// Serialize a [`Some(T)`] value.
|
||||||
@ -802,7 +802,7 @@ pub trait Serializer: Sized {
|
|||||||
/// # fn main() {}
|
/// # fn main() {}
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`Some(T)`]: https://doc.rust-lang.org/std/option/enum.Option.html#variant.Some
|
/// [`Some(T)`]: core::option::Option::Some
|
||||||
fn serialize_some<T>(self, value: &T) -> Result<Self::Ok, Self::Error>
|
fn serialize_some<T>(self, value: &T) -> Result<Self::Ok, Self::Error>
|
||||||
where
|
where
|
||||||
T: ?Sized + Serialize;
|
T: ?Sized + Serialize;
|
||||||
@ -1353,8 +1353,7 @@ pub trait Serializer: Sized {
|
|||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`String`]: https://doc.rust-lang.org/std/string/struct.String.html
|
/// [`serialize_str`]: Self::serialize_str
|
||||||
/// [`serialize_str`]: #tymethod.serialize_str
|
|
||||||
#[cfg(any(feature = "std", feature = "alloc"))]
|
#[cfg(any(feature = "std", feature = "alloc"))]
|
||||||
fn collect_str<T>(self, value: &T) -> Result<Self::Ok, Self::Error>
|
fn collect_str<T>(self, value: &T) -> Result<Self::Ok, Self::Error>
|
||||||
where
|
where
|
||||||
@ -1805,9 +1804,9 @@ pub trait SerializeMap {
|
|||||||
/// care about performance or are not able to optimize `serialize_entry` any
|
/// care about performance or are not able to optimize `serialize_entry` any
|
||||||
/// better than this.
|
/// better than this.
|
||||||
///
|
///
|
||||||
/// [`Serialize`]: ../trait.Serialize.html
|
/// [`Serialize`]: crate::Serialize
|
||||||
/// [`serialize_key`]: #tymethod.serialize_key
|
/// [`serialize_key`]: Self::serialize_key
|
||||||
/// [`serialize_value`]: #tymethod.serialize_value
|
/// [`serialize_value`]: Self::serialize_value
|
||||||
fn serialize_entry<K, V>(&mut self, key: &K, value: &V) -> Result<(), Self::Error>
|
fn serialize_entry<K, V>(&mut self, key: &K, value: &V) -> Result<(), Self::Error>
|
||||||
where
|
where
|
||||||
K: ?Sized + Serialize,
|
K: ?Sized + Serialize,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user