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.

Implementations

Create a new node event.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.