MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / parse

Method parse

flow-derive/src/internal.rs:28–33  ·  view source on GitHub ↗
(input: ParseStream)

Source from the content-addressed store, hash-verified

26
27impl<ID: Parse> Parse for CollectionSlice<ID> {
28 fn parse(input: ParseStream) -> Result<Self> {
29 let name: ID = input.parse()?;
30 input.parse::<Token![,]>()?;
31 let expr: TokenStream = input.parse()?;
32 Ok(CollectionSlice { name, expr })
33 }
34}
35
36pub fn submit_expand<ID: ToTokens>(input: CollectionSlice<ID>) -> TokenStream {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected