MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / parse

Method parse

pulley/macros/src/interp_disable_if_cfg.rs:36–48  ·  view source on GitHub ↗
(input: ParseStream)

Source from the content-addressed store, hash-verified

34
35impl Parse for Fn {
36 fn parse(input: ParseStream) -> Result<Self> {
37 let attrs = input.call(Attribute::parse_outer)?;
38 let visibility: Visibility = input.parse()?;
39 let sig: Signature = input.parse()?;
40 let body: Block = input.parse()?;
41
42 Ok(Self {
43 attrs,
44 visibility,
45 sig,
46 body,
47 })
48 }
49}
50
51impl ToTokens for Fn {

Callers

nothing calls this directly

Calls 2

OkFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected