TaxonRepresenting
public protocol TaxonRepresenting : CustomStringConvertible, Hashable
Any type that encapsulates the minimum data required to identify a record from the NCBI’s Taxonomy database (this is the record ID), plus some basic properties (name and rank) that describe the record.
-
The internal NCBI identifier for the record.
Declaration
Swift
var identifier: TaxonID { get }
-
The scientific name of the record.
Declaration
Swift
var name: String { get }
-
The rank of the record or
nil
if the record has no rank.Declaration
Swift
var rank: TaxonomicRank? { get }
-
==(_:_:)
Extension methodReturns a Boolean value indicating whether two values are equal. Two
TaxonRepresenting
values are equal when they have the same identifier.Declaration
Swift
public static func == (lhs: Self, rhs: Self) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
-
hash(into:)
Extension methodThe hash value depends on the identifier.
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
description
Extension methodA textual representation of this instance.
Declaration
Swift
public var description: String { get }