[][src]Struct bracket::parser::iter::NodeEvent

pub struct NodeEvent<'a> {
    pub node: &'a Node<'a>,
    pub trim: TrimState,
    pub first: bool,
    pub last: bool,
}

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

impl<'a> NodeEvent<'a>[src]

pub fn new(node: &'a Node<'_>, trim: TrimState, first: bool, last: bool) -> Self[src]

Trait Implementations

impl<'a> Debug for NodeEvent<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for NodeEvent<'a>

impl<'a> Send for NodeEvent<'a>

impl<'a> Sync for NodeEvent<'a>

impl<'a> Unpin for NodeEvent<'a>

impl<'a> UnwindSafe for NodeEvent<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.