Trait manyhow::MacroOutput

source ·
pub trait MacroOutput {
    // Required method
    fn convert(self) -> Result<TokenStream, Error>;
}
Expand description

Output of a macro handler.

Enables support for returning any TokenStream or Result<TokenStream, impl ToTokensError> from a proc-macro implementation.

Required Methods§

source

fn convert(self) -> Result<TokenStream, Error>

Handles conversion into a Result<TokenStream, Error>.

Implementors§