Crate call2_for_syn

Source
Expand description

This library provides a call2 function that sits somewhere in-between syn’s parse2 and ParseBuffer::call: It lets you conveniently apply a parser function to a proc-macro2 token stream, for example from a quote!.

Zulip Chat

Structs§

Incomplete
Signifies that parser did not consume all of input in a call2_strict call.

Functions§

call2_allow_incomplete
Analogous to syn::parse2 and syn::parse::ParseBuffer::call.
call2_strict
Analogous to syn::parse2 and syn::parse::ParseBuffer::call.

Type Aliases§

Result
Returned by call2_strict.