Trait ResultExt

Source
pub trait ResultExt<Value, DeError> {
    // Required method
    fn try_event(self) -> Result<Option<Value>, DeserializerError<DeError>>;
}
Expand description

Result extension.

Required Methods§

Source

fn try_event(self) -> Result<Option<Value>, DeserializerError<DeError>>

Returns Ok(None) if Err is DeserializerError::UnexpectedEvent.

§Errors

Returns Err if a Deserializer error occurs.

Implementations on Foreign Types§

Source§

impl<Value, DeError> ResultExt<Value, DeError> for Result<Value, Error<DeError>>

Source§

fn try_event(self) -> Result<Option<Value>, DeserializerError<DeError>>

Implementors§