Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Object_ID

mattt edited this page Jul 27, 2020 · 3 revisions

Object.ID

An object ID.

public struct ID: Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral

Inheritance

CustomStringConvertible, Equatable, ExpressibleByStringLiteral, Hashable

Initializers

init(rawValue:)

init(rawValue: git_oid)

init(string:)

Creates an Object ID from a string.

public init(string: String) throws

init(bytes:)

Creates an Object ID from a byte array.

public init(bytes: [UInt8]) throws

init(data:)

Creates an Object ID from data.

public init(data: Data) throws

init(stringLiteral:)

public init(stringLiteral value: StringLiteralType)

Properties

rawValue

let rawValue: git_oid

description

var description: String

Methods

==(lhs:rhs:)

public static func ==(lhs: Object.ID, rhs: Object.ID) -> Bool

hash(into:)

public func hash(into hasher: inout Hasher)

Clone this wiki locally