parse_type

Function parse_type 

Source
pub fn parse_type(tokens: TokenStream) -> Result<PType, String>
Expand description

Parse a TokenStream into a PType (either struct or enum).

This is a convenience function that tries to parse the token stream as either a struct or an enum.