mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 23:01:01 +00:00
Hide deserialize_from
This commit is contained in:
+5
-6
@@ -520,12 +520,11 @@ pub trait Deserialize<'de>: Sized {
|
|||||||
/// If you manually implement this, your recursive deserializations should
|
/// If you manually implement this, your recursive deserializations should
|
||||||
/// use `deserialize_from`.
|
/// use `deserialize_from`.
|
||||||
///
|
///
|
||||||
/// TODO: example
|
/// This method is stable and an official public API, but hidden from the
|
||||||
///
|
/// documentation because it is almost never what newbies are looking for.
|
||||||
/// ```
|
/// Showing it in rustdoc would cause it to be featured more prominently
|
||||||
/// // Something with a loop that returns on error.
|
/// than it deserves.
|
||||||
///
|
#[doc(hidden)]
|
||||||
/// ```
|
|
||||||
fn deserialize_from<D>(&mut self, deserializer: D) -> Result<(), D::Error>
|
fn deserialize_from<D>(&mut self, deserializer: D) -> Result<(), D::Error>
|
||||||
where D: Deserializer<'de>
|
where D: Deserializer<'de>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user