MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse

Method parse

perro_source/script_stack/perro_scripting_macros/src/lib.rs:12–18  ·  view source on GitHub ↗
(input: syn::parse::ParseStream<'_>)

Source from the content-addressed store, hash-verified

10
11impl Parse for EmptyAttrArgs {
12 fn parse(input: syn::parse::ParseStream<'_>) -> Result<Self> {
13 if input.is_empty() {
14 Ok(Self)
15 } else {
16 Err(input.error("`State` does not accept arguments"))
17 }
18 }
19}
20
21#[allow(non_snake_case)]

Callers 1

Calls 2

errorMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected