|
97 | 97 | //!
|
98 | 98 | //! [Implementing `Serialize`]: https://serde.rs/impl-serialize.html
|
99 | 99 | //! [`LinkedHashMap<K, V>`]: https://docs.rs/linked-hash-map/*/linked_hash_map/struct.LinkedHashMap.html
|
100 |
| -//! [`Serialize`]: ../trait.Serialize.html |
101 |
| -//! [`Serializer`]: ../trait.Serializer.html |
| 100 | +//! [`Serialize`]: crate::Serialize |
| 101 | +//! [`Serializer`]: crate::Serializer |
102 | 102 | //! [`postcard`]: https://github.com/jamesmunns/postcard
|
103 | 103 | //! [`linked-hash-map`]: https://crates.io/crates/linked-hash-map
|
104 | 104 | //! [`serde_derive`]: https://crates.io/crates/serde_derive
|
@@ -173,8 +173,8 @@ macro_rules! declare_error_trait {
|
173 | 173 | /// }
|
174 | 174 | /// ```
|
175 | 175 | ///
|
176 |
| - /// [`Path`]: https://doc.rust-lang.org/std/path/struct.Path.html |
177 |
| - /// [`Serialize`]: ../trait.Serialize.html |
| 176 | + /// [`Path`]: std::path::Path |
| 177 | + /// [`Serialize`]: crate::Serialize |
178 | 178 | fn custom<T>(msg: T) -> Self
|
179 | 179 | where
|
180 | 180 | T: Display;
|
@@ -345,7 +345,7 @@ pub trait Serializer: Sized {
|
345 | 345 | /// in-memory data structures may be simplified by using `Ok` to propagate
|
346 | 346 | /// the data structure around.
|
347 | 347 | ///
|
348 |
| - /// [`io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html |
| 348 | + /// [`io::Write`]: std::io::Write |
349 | 349 | type Ok;
|
350 | 350 |
|
351 | 351 | /// The error type when some error occurs during serialization.
|
@@ -769,7 +769,7 @@ pub trait Serializer: Sized {
|
769 | 769 | /// # fn main() {}
|
770 | 770 | /// ```
|
771 | 771 | ///
|
772 |
| - /// [`None`]: https://doc.rust-lang.org/std/option/enum.Option.html#variant.None |
| 772 | + /// [`None`]: core::option::Option::None |
773 | 773 | fn serialize_none(self) -> Result<Self::Ok, Self::Error>;
|
774 | 774 |
|
775 | 775 | /// Serialize a [`Some(T)`] value.
|
@@ -802,7 +802,7 @@ pub trait Serializer: Sized {
|
802 | 802 | /// # fn main() {}
|
803 | 803 | /// ```
|
804 | 804 | ///
|
805 |
| - /// [`Some(T)`]: https://doc.rust-lang.org/std/option/enum.Option.html#variant.Some |
| 805 | + /// [`Some(T)`]: core::option::Option::Some |
806 | 806 | fn serialize_some<T>(self, value: &T) -> Result<Self::Ok, Self::Error>
|
807 | 807 | where
|
808 | 808 | T: ?Sized + Serialize;
|
@@ -1353,8 +1353,7 @@ pub trait Serializer: Sized {
|
1353 | 1353 | /// }
|
1354 | 1354 | /// ```
|
1355 | 1355 | ///
|
1356 |
| - /// [`String`]: https://doc.rust-lang.org/std/string/struct.String.html |
1357 |
| - /// [`serialize_str`]: #tymethod.serialize_str |
| 1356 | + /// [`serialize_str`]: Self::serialize_str |
1358 | 1357 | #[cfg(any(feature = "std", feature = "alloc"))]
|
1359 | 1358 | fn collect_str<T>(self, value: &T) -> Result<Self::Ok, Self::Error>
|
1360 | 1359 | where
|
@@ -1805,9 +1804,9 @@ pub trait SerializeMap {
|
1805 | 1804 | /// care about performance or are not able to optimize `serialize_entry` any
|
1806 | 1805 | /// better than this.
|
1807 | 1806 | ///
|
1808 |
| - /// [`Serialize`]: ../trait.Serialize.html |
1809 |
| - /// [`serialize_key`]: #tymethod.serialize_key |
1810 |
| - /// [`serialize_value`]: #tymethod.serialize_value |
| 1807 | + /// [`Serialize`]: crate::Serialize |
| 1808 | + /// [`serialize_key`]: Self::serialize_key |
| 1809 | + /// [`serialize_value`]: Self::serialize_value |
1811 | 1810 | fn serialize_entry<K, V>(&mut self, key: &K, value: &V) -> Result<(), Self::Error>
|
1812 | 1811 | where
|
1813 | 1812 | K: ?Sized + Serialize,
|
|
0 commit comments