mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-17 19:41:07 +00:00
Hyperlink the Impossible documentation
This commit is contained in:
@@ -9,9 +9,9 @@ use ser::{self, Serialize, SerializeSeq, SerializeTuple, SerializeTupleStruct,
|
|||||||
/// serializing one of the compound types.
|
/// serializing one of the compound types.
|
||||||
///
|
///
|
||||||
/// This type cannot be instantiated, but implements every one of the traits
|
/// This type cannot be instantiated, but implements every one of the traits
|
||||||
/// corresponding to the `Serializer` compound types: `SerializeSeq`,
|
/// corresponding to the [`Serializer`] compound types: [`SerializeSeq`],
|
||||||
/// `SerializeTuple`, `SerializeTupleStruct`, `SerializeTupleVariant`,
|
/// [`SerializeTuple`], [`SerializeTupleStruct`], [`SerializeTupleVariant`],
|
||||||
/// `SerializeMap`, `SerializeStruct`, and `SerializeStructVariant`.
|
/// [`SerializeMap`], [`SerializeStruct`], and [`SerializeStructVariant`].
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # #[macro_use]
|
/// # #[macro_use]
|
||||||
@@ -52,6 +52,15 @@ use ser::{self, Serialize, SerializeSeq, SerializeTuple, SerializeTupleStruct,
|
|||||||
/// #
|
/// #
|
||||||
/// # fn main() {}
|
/// # fn main() {}
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// [`Serializer`]: trait.Serializer.html
|
||||||
|
/// [`SerializeSeq`]: trait.SerializeSeq.html
|
||||||
|
/// [`SerializeTuple`]: trait.SerializeTuple.html
|
||||||
|
/// [`SerializeTupleStruct`]: trait.SerializeTupleStruct.html
|
||||||
|
/// [`SerializeTupleVariant`]: trait.SerializeTupleVariant.html
|
||||||
|
/// [`SerializeMap`]: trait.SerializeMap.html
|
||||||
|
/// [`SerializeStruct`]: trait.SerializeStruct.html
|
||||||
|
/// [`SerializeStructVariant`]: trait.SerializeStructVariant.html
|
||||||
pub struct Impossible<Ok, E> {
|
pub struct Impossible<Ok, E> {
|
||||||
void: Void,
|
void: Void,
|
||||||
_marker: PhantomData<(Ok, E)>,
|
_marker: PhantomData<(Ok, E)>,
|
||||||
|
|||||||
Reference in New Issue
Block a user