Skip to content

Instantly share code, notes, and snippets.

@serhiybutz
Created September 19, 2021 10:43
Show Gist options
  • Save serhiybutz/4b76cc4078b1b22900217fd80017847a to your computer and use it in GitHub Desktop.
Save serhiybutz/4b76cc4078b1b22900217fd80017847a to your computer and use it in GitHub Desktop.
public protocol Borrowable {
var oid: ObjectIdentifier { get }
}
extension Shared: Borrowable {
public var oid: ObjectIdentifier { ObjectIdentifier(self) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment