Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
proc_macro_error::filter_macro_error_panics - Rust
[go: Go Back, main page]

[][src]Function proc_macro_error::filter_macro_error_panics

pub fn filter_macro_error_panics<F>(f: F) -> TokenStream where
    F: FnOnce() -> TokenStream

Execute the closure and catch all the panics triggered by trigger_error, converting them to proc_macro::TokenStream. All the other panics will be passed through as is.

You're not supposed to use this function directly, use filter_macro_errors! instead.