pub trait TryToTokens {
    // Required method
    fn try_to_tokens(&self, tokens: &mut TokenStream) -> Result<(), Diagnostic>;

    // Provided method
    fn try_to_token_stream(&self) -> Result<TokenStream, Diagnostic> { ... }
}

Required Methods§

source

fn try_to_tokens(&self, tokens: &mut TokenStream) -> Result<(), Diagnostic>

Provided Methods§

Implementors§