Skip to main content

parse

Function parse 

Source
pub fn parse(
    name: &str,
    authorship: Option<&str>,
    rank: Option<Rank>,
    code: Option<NomCode>,
) -> ParseResult
Expand description

The primary 5.0.0 exceptionless entry point (mirrors Java NameParser.parse()): classifies a scientific name into the three-way ParseResult (Parsed | Informal | Unparsable) that every binding exposes, never throwing. The informal split is applied here — a supraspecific taxon carrying a provisional designation with NO species epithet becomes ParseResult::Informal; a name with a species epithet (including cf./aff. and infraspecific-indeterminate binomials) stays ParseResult::Parsed, so its specific_authorship — which a flat anchor could not represent — is preserved. For the raw ParsedName/error shape (no informal split), use parse_name.