pub enum NameType {
Scientific,
Formula,
Informal,
Placeholder,
Identifier,
Other,
}Expand description
Java org.gbif.nameparser.api.NameType. A short classification of scientific name strings.
Variants§
Scientific
Formula
Informal
Placeholder
Identifier
An anchorless, scheme-prefixed machine identifier — a UNITE species hypothesis
(SH1957732.10FU), a BOLD BIN (BOLD:AAA0001), an OTU/ASV/… operational unit, or a
standalone culture-collection accession (DSM 10). Not a name the parser can express as a
crate::model::ParsedName, so — like Other — it is not parsable and only ever
appears in a ParseResult::Unparsable; it just carries a more specific classification than
the catch-all Other. Placed before Other so the catch-all stays last; this makes it
FFI-wire ordinal 4 and shifts Other to 5 (a lockstep change gated by the ABI-version bump).
Other
Implementations§
Source§impl NameType
impl NameType
Sourcepub fn is_parsable(&self) -> bool
pub fn is_parsable(&self) -> bool
Java NameType.isParsable() (NameType.java): true iff the parser can express such a name
as a crate::model::ParsedName — SCIENTIFIC or INFORMAL. The 5.0.0
ParseResult.Unparsable variant (Java + Rust) may only carry a non-parsable type, so this
gates the crate::ParseError::clamped_to_unparsable normalization.