Skip to main content

parse_type_str_strict

Function parse_type_str_strict 

Source
pub fn parse_type_str_strict(s: &str) -> Result<Type, String>
Expand description

Parse a type annotation string strictly. Returns Err(unknown_name) if the string is a non-empty identifier that does not map to a known type (i.e. a likely typo). Generic forms (Result<...>, Option<...>, List<...>) with valid inner types are accepted.