pub enum ElementHandlerOutput<'a> {
Continue {
event: Event<'a>,
allow_any: bool,
},
Break {
event: DeserializerEvent<'a>,
allow_any: bool,
},
}
Expand description
Controls the flow of the deserializer
Variants§
Continue
Continue with the deserialization
Fields
Break
Break the deserialization
Fields
§
event: DeserializerEvent<'a>
Instructions how to deal with a maybe unhandled event returned by the child deserializer .
Implementations§
Source§impl<'a> ElementHandlerOutput<'a>
impl<'a> ElementHandlerOutput<'a>
Sourcepub fn break_(event: DeserializerEvent<'a>, allow_any: bool) -> Self
pub fn break_(event: DeserializerEvent<'a>, allow_any: bool) -> Self
Create a Break
instance.
Sourcepub fn return_to_parent(event: Event<'a>, allow_any: bool) -> Self
pub fn return_to_parent(event: Event<'a>, allow_any: bool) -> Self
Create a Break
instance that will return the passed
event
to the parent deserializers for further processing.
Sourcepub fn return_to_root(event: Event<'a>, allow_any: bool) -> Self
pub fn return_to_root(event: Event<'a>, allow_any: bool) -> Self
Create a Break
instance that will return the passed
event
to root of the deserialization process.
Sourcepub fn from_event(event: DeserializerEvent<'a>, allow_any: bool) -> Self
pub fn from_event(event: DeserializerEvent<'a>, allow_any: bool) -> Self
Sourcepub fn from_event_end(event: DeserializerEvent<'a>, allow_any: bool) -> Self
pub fn from_event_end(event: DeserializerEvent<'a>, allow_any: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ElementHandlerOutput<'a>
impl<'a> RefUnwindSafe for ElementHandlerOutput<'a>
impl<'a> Send for ElementHandlerOutput<'a>
impl<'a> Sync for ElementHandlerOutput<'a>
impl<'a> Unpin for ElementHandlerOutput<'a>
impl<'a> UnwindSafe for ElementHandlerOutput<'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