MCPcopy Create free account
hub / github.com/HFQR/xitca-web / state_impl

Function state_impl

codegen/src/lib.rs:10–13  ·  view source on GitHub ↗
(item: TokenStream)

Source from the content-addressed store, hash-verified

8
9#[proc_macro_derive(State, attributes(borrow))]
10pub fn state_impl(item: TokenStream) -> TokenStream {
11 let item = syn::parse_macro_input!(item);
12 state::state(item).unwrap_or_else(|e| e.to_compile_error().into())
13}
14
15/// attribute macro for `xitca-web` application.
16///

Callers

nothing calls this directly

Calls 1

stateFunction · 0.85

Tested by

no test coverage detected