mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-07-22 17:15:44 +00:00
Hyperlink the forward_to_deserialize documentation
This commit is contained in:
+10
-6
@@ -113,11 +113,11 @@ macro_rules! forward_to_deserialize_helper {
|
|||||||
/// Helper macro when implementing the `Deserializer` part of a new data format
|
/// Helper macro when implementing the `Deserializer` part of a new data format
|
||||||
/// for Serde.
|
/// for Serde.
|
||||||
///
|
///
|
||||||
/// Some `Deserializer` implementations for self-describing formats do not care
|
/// Some [`Deserializer`] implementations for self-describing formats do not
|
||||||
/// what hint the `Visitor` gives them, they just want to blindly call the
|
/// care what hint the [`Visitor`] gives them, they just want to blindly call
|
||||||
/// `Visitor` method corresponding to the data they can tell is in the input.
|
/// the [`Visitor`] method corresponding to the data they can tell is in the
|
||||||
/// This requires repetitive implementations of all the `Deserializer` trait
|
/// input. This requires repetitive implementations of all the [`Deserializer`]
|
||||||
/// methods.
|
/// trait methods.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # #[macro_use]
|
/// # #[macro_use]
|
||||||
@@ -154,7 +154,7 @@ macro_rules! forward_to_deserialize_helper {
|
|||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// The `forward_to_deserialize!` macro implements these simple forwarding
|
/// The `forward_to_deserialize!` macro implements these simple forwarding
|
||||||
/// methods so that they forward directly to `Deserializer::deserialize`. You
|
/// methods so that they forward directly to [`Deserializer::deserialize`]. You
|
||||||
/// can choose which methods to forward.
|
/// can choose which methods to forward.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
@@ -220,6 +220,10 @@ macro_rules! forward_to_deserialize_helper {
|
|||||||
/// #
|
/// #
|
||||||
/// # fn main() {}
|
/// # fn main() {}
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// [`Deserializer`]: trait.Deserializer.html
|
||||||
|
/// [`Visitor`]: de/trait.Visitor.html
|
||||||
|
/// [`Deserializer::deserialize`]: trait.Deserializer.html#tymethod.deserialize
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! forward_to_deserialize {
|
macro_rules! forward_to_deserialize {
|
||||||
(<$visitor:ident: Visitor<$lifetime:tt>> $($func:ident)*) => {
|
(<$visitor:ident: Visitor<$lifetime:tt>> $($func:ident)*) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user