Struct bracket::parser::iter::NodeEvent [−][src]
pub struct NodeEvent<'a> {
pub node: &'a Node<'a>,
pub trim: TrimState,
pub first: bool,
pub last: bool,
}
Expand description
Event that encapsulates a node and whitespace trim state.
Fields
node: &'a Node<'a>
The node being emitted.
trim: TrimState
The trim state for the node.
first: bool
Whether this is the first event in the current iteration.
last: bool
Whether this is the last event in the current iteration.