include_tt 1.1.1

Macros for ultra-flexible injection of token trees, literals, or binary data into Rust code from external files during compilation.
Documentation
use proc_macro2::TokenStream as TokenStream2;

/// Events for the `autoinject_tt_in_group` function.
pub(crate) enum SearchGroup {
    /// Abort the group search
    /// and display an error.
    Error(TokenStream2),

    /// The trees are over,
    /// we need to stop the search.
    Break,
}

impl From<TokenStream2> for SearchGroup {
    #[inline]
    fn from(e: TokenStream2) -> Self {
        Self::Error(e)
    }
}