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
nilif the record has no rank.Declaration
Swift
var rank: TaxonomicRank? { get }
-
==(_:_:)Extension methodReturns a Boolean value indicating whether two values are equal. Two
TaxonRepresentingvalues are equal when they have the same identifier.Declaration
Swift
public static func == (lhs: Self, rhs: Self) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
hash(into:)Extension methodThe hash value depends on the identifier.
Declaration
Swift
public func hash(into hasher: inout Hasher) -
descriptionExtension methodA textual representation of this instance.
Declaration
Swift
public var description: String { get }
View on GitHub
Install in Dash
TaxonRepresenting Protocol Reference