Extend documentation of value::Serializer

This commit is contained in:
David Tolnay 2020-02-12 21:37:40 -08:00
parent d5b4be8509
commit 03e27f5eb7
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -32,7 +32,12 @@ impl Serialize for Value {
}
}
/// Serializer type for `Value`.
/// Serializer whose output is a `Value`.
///
/// This is the serializer that backs [`serde_json::to_value`][crate::to_value].
/// Unlike the main serde_json serializer which goes from some serializable
/// value of type `T` to JSON text, this one goes from `T` to
/// `serde_json::Value`.
pub struct Serializer;
impl serde::Serializer for Serializer {