pub enum NamePart {
Generic,
Infrageneric,
Specific,
Infraspecific,
}Expand description
Java org.gbif.nameparser.api.NamePart. Indicates a part of a canonical scientific name.
Declaration order below matches Java’s ordinal order (verified against
NamePart.java), and carries PartialOrd, Ord so it can be used as a BTreeMap key
for ParsedName::epithet_qualifier — Java’s own EnumMap<NamePart, String> there
iterates in the same ordinal order, so a BTreeMap reproduces it on the wire.
Variants§
Trait Implementations§
impl Copy for NamePart
impl Eq for NamePart
Source§impl Ord for NamePart
impl Ord for NamePart
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for NamePart
impl PartialOrd for NamePart
impl StructuralPartialEq for NamePart
Auto Trait Implementations§
impl Freeze for NamePart
impl RefUnwindSafe for NamePart
impl Send for NamePart
impl Sync for NamePart
impl Unpin for NamePart
impl UnsafeUnpin for NamePart
impl UnwindSafe for NamePart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more