Trait rstml::node::CustomNode

source ·
pub trait CustomNode: ParseRecoverable + ToTokens {
    // Required method
    fn peek_element(input: ParseStream<'_>) -> bool;
}

Required Methods§

source

fn peek_element(input: ParseStream<'_>) -> bool

Peeks the token stream to decide whether this node should be parsed.

Recieves a ParseStream::fork.

Object Safety§

This trait is not object safe.

Implementors§