pub enum DeserializerEvent<'a> {
None,
Break(Event<'a>),
Continue(Event<'a>),
}
Expand description
Indicates what to do with a event returned by a deserializer
Variants§
None
The event was consumed by the deserializer, nothing to handle here.
Break(Event<'a>)
The event is handled and should be returned to the deserialization root for additional evaluation.
Continue(Event<'a>)
The event was not consumed by the deserializer an may be processed again by it’s any of it’s parents.
Implementations§
Source§impl<'a> DeserializerEvent<'a>
impl<'a> DeserializerEvent<'a>
Sourcepub fn into_event(self) -> Option<Event<'a>>
pub fn into_event(self) -> Option<Event<'a>>
Extract the event as Option
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DeserializerEvent<'a>
impl<'a> RefUnwindSafe for DeserializerEvent<'a>
impl<'a> Send for DeserializerEvent<'a>
impl<'a> Sync for DeserializerEvent<'a>
impl<'a> Unpin for DeserializerEvent<'a>
impl<'a> UnwindSafe for DeserializerEvent<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more