MCPcopy Create free account
hub / github.com/carllerche/assert-struct / parse

Method parse

assert-struct-macros/src/pattern/wildcard.rs:22–27  ·  view source on GitHub ↗

Parses a wildcard pattern: `_` # Example Input ```text _ ```

(input: syn::parse::ParseStream)

Source from the content-addressed store, hash-verified

20 /// _
21 /// ```
22 fn parse(input: syn::parse::ParseStream) -> syn::Result<Self> {
23 let _: Token![_] = input.parse()?;
24 Ok(PatternWildcard {
25 node_id: next_node_id(),
26 })
27 }
28}

Callers

nothing calls this directly

Calls 1

next_node_idFunction · 0.85

Tested by

no test coverage detected