pub fn from_to_tokens<T>(tokens: T) -> Self
    where
        T: ToTokens,
    {
        let mut this = Self::new();
        crate::macros::to_tokens(&tokens, &mut this);
        this
    }
/// Construct a token stream from tokens.
///
/// # Panics
///
/// This will panic if called outside of a macro context.
Construct a token stream from tokens.
Construct a token stream from tokens .
pub fn from_to_tokens<T>(tokens: T) -> Self
    where
        T: ToTokens,
    {
        let mut this = Self::new();
        crate::macros::to_tokens(&tokens, &mut this);
        this
    }
pub fn from_to_tokens < T > ( tokens : T ) -> Self where T : ToTokens , { let mut this = Self :: new ( ) ; crate :: macros :: to_tokens ( & tokens , & mut this ) ; this }
Construct a token stream from tokens.
Construct a token stream from tokens .
tokens
T
tokens
T
panics
This will panic if called outside of a macro context.
This will panic if called outside of a macro context .