Object_ID - SwiftDocOrg/Git GitHub Wiki

Object.ID

An object ID.

public struct ID:​ Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral

Inheritance

CustomStringConvertible, Equatable, ExpressibleByStringLiteral, Hashable

Initializers

init()

public init()

init(_:​)

public init<T>(_ body:(UnsafeMutablePointer<git_oid>) throws -> T) rethrows

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

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)
⚠️ **GitHub.com Fallback** ⚠️