Struct Taxon
pub struct Taxon { /* private fields */ }Expand description
A taxon represented by rank and validated name.
Implementations§
§impl Taxon
impl Taxon
pub const fn new(rank: TaxonomicRank, name: TaxonName) -> Taxon
pub const fn new(rank: TaxonomicRank, name: TaxonName) -> Taxon
Creates a taxon from rank and name.
pub const fn rank(&self) -> &TaxonomicRank
pub const fn rank(&self) -> &TaxonomicRank
Returns the rank.
Trait Implementations§
§impl Ord for Taxon
impl Ord for Taxon
§impl PartialOrd for Taxon
impl PartialOrd for Taxon
impl Eq for Taxon
impl StructuralPartialEq for Taxon
Auto Trait Implementations§
impl Freeze for Taxon
impl RefUnwindSafe for Taxon
impl Send for Taxon
impl Sync for Taxon
impl Unpin for Taxon
impl UnsafeUnpin for Taxon
impl UnwindSafe for Taxon
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