aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c07e0a1..5235e54 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -31,6 +31,9 @@ pub trait DeserializeTagged: Sized + MaybeStatic
pub trait ResultExt<Value, DeError>
{
/// Returns `Ok(None)` if `Err` is `DeserializerError::UnexpectedEvent`.
+ ///
+ /// # Errors
+ /// Returns `Err` if a `Deserializer` error occurs.
fn try_event(self) -> Result<Option<Value>, DeserializerError<DeError>>;
}