Trait proclet::ToTokens

source ·
pub trait ToTokens<T: TokenTree> {
    // Required method
    fn to_tokens(&self) -> impl Iterator<Item = T> + '_;
}
Expand description

Trait for getting the token representation of an object.

Required Methods§

source

fn to_tokens(&self) -> impl Iterator<Item = T> + '_

Get an iterator of tokens representing this object.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: TokenTree> ToTokens<T> for TokenBuf<T>

source§

impl<T: TokenTree, X: IntoTokens<T> + Clone> ToTokens<T> for X