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.
pub fn parse_type(tokens: TokenStream) -> Result<PType, String>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.