Int16

extension Int16: Identifier

Extends Int16 to comply to the Identifier protocol.

Usage Example:

 // The Identifier used in the Id field could be an `Int16`.
 public typealias IdentifierCodableClosure<Id: Identifier, I: Codable, O: Codable> = (Id, I, @escaping CodableResultClosure<O>) -> Void
  • Creates an integer identifier from a given string representation.

    Throws

    An IdentifierError.invalidValue if the given string cannot be converted to an integer.

    Declaration

    Swift

    public init(value: String) throws
  • The string representation of the identifier.

    Declaration

    Swift

    public var value: String { get }