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::entry_point - Rust
[go: Go Back, main page]

[][src]Function proc_macro_error::entry_point

pub fn entry_point<F>(f: F) -> TokenStream where
    F: FnOnce() -> TokenStream + UnwindSafe

This is the entry point for your proc-macro. It is must to be used on the top level of the proc-macro (a function annotated with `#[proc_macro*] attribute).

Typically, you use #[proc_macro_error] instead, see module level docs.