FeatureIdentifier
public enum FeatureIdentifier : Hashable, Sendable
extension FeatureIdentifier: RawRepresentable
extension FeatureIdentifier: ExpressibleByStringLiteral
extension FeatureIdentifier: ExpressibleByIntegerLiteral
extension FeatureIdentifier: ExpressibleByFloatLiteral
extension FeatureIdentifier: Codable
A feature identifier identifies a Feature object.
-
A string.
Declaration
Swift
case string(_: String) -
A floating-point number.
Declaration
Swift
case number(_: Double)Parameters
numberA floating-point number. JSON does not distinguish numeric types of different precisions. If you need integer precision, cast this associated value to an
Int. -
Initializes a feature identifier representing the given string.
Declaration
Swift
public init(_ string: String) -
Initializes a feature identifier representing the given integer.
Declaration
Swift
public init<Source>(_ number: Source) where Source : BinaryIntegerParameters
numberAn integer. JSON does not distinguish numeric types of different precisions, so the integer is stored as a floating-point number.
-
Initializes a feature identifier representing the given floating-point number.
Declaration
Swift
public init<Source>(_ number: Source) where Source : BinaryFloatingPoint -
Declaration
Swift
public typealias RawValue = Any -
Declaration
Swift
public init?(rawValue: Any) -
Declaration
Swift
public var rawValue: Any { get } -
Declaration
Swift
public init(stringLiteral value: StringLiteralType) -
Declaration
Swift
public init(integerLiteral value: IntegerLiteralType) -
Declaration
Swift
public init(floatLiteral value: FloatLiteralType) -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
Install in Dash
FeatureIdentifier Enumeration Reference