Trait yaml_rust2::parser::MarkedEventReceiver

source ·
pub trait MarkedEventReceiver {
    // Required method
    fn on_event(&mut self, ev: Event, _mark: Marker);
}
Expand description

Trait to be implemented for using the low-level parsing API.

Functionally similar to EventReceiver, but receives a Marker as well as the event.

Required Methods§

source

fn on_event(&mut self, ev: Event, _mark: Marker)

Handler called for each event that occurs.

Implementors§